Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix module reloading
The Python 2/3 check was reversed from what it was supposed to be.
  • Loading branch information
asmeurer committed Aug 30, 2016
1 parent f46002a commit e779874
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 e779874

Please sign in to comment.