Skip to content

Commit

Permalink
Merge pull request #199 from asmeurer/reload
Browse files Browse the repository at this point in the history
Fix module reloading
  • Loading branch information
inducer committed Aug 30, 2016
2 parents c18c388 + e779874 commit b2898bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pudb/debugger.py
Expand Up @@ -1375,10 +1375,10 @@ def keypress(self, size, key):
mod_name = widget.base_widget.get_text()[0]
mod = sys.modules[mod_name]
if PY3:
reload(mod) # noqa (undef on Py3)
else:
import importlib
importlib.reload(mod)
else:
reload(mod) # noqa (undef on Py3)

self.message("'%s' was successfully reloaded." % mod_name)

Expand Down

0 comments on commit b2898bd

Please sign in to comment.