Permalink
Browse files

PEP8 ipython integration

  • Loading branch information...
1 parent 74a0d9c commit 095d240ab07a6e224ffc9f19ee4a1ad422a4469c @inducer committed Feb 18, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 pudb/ipython.py
View
@@ -18,6 +18,7 @@
ip = TerminalInteractiveShell.instance()
_ipython_version = (0, 11)
+
# This conforms to IPython version 0.10
def pudb_f_v10(self, arg):
""" Debug a script (like %run -d) in the IPython process, using PuDB.
@@ -43,6 +44,7 @@ def pudb_f_v10(self, arg):
from pudb import runscript
ip.IP.history_saving_wrapper(lambda: runscript(path, args))()
+
# This conforms to IPython version 0.11
def pudb_f_v11(self, arg):
""" Debug a script (like %run -d) in the IPython process, using PuDB.
@@ -71,8 +73,8 @@ def pudb_f_v11(self, arg):
from pudb import runscript
runscript(path, args)
-if _ipython_version == (1, 0):
+if _ipython_version == (1, 0):
# For IPython 1.0.0
def pudb(line):
"""
@@ -112,7 +114,7 @@ def debugger(self, force=False):
if not (force or self.call_pdb):
return
- if not hasattr(sys,'last_traceback'):
+ if not hasattr(sys, 'last_traceback'):
error('No traceback has been produced, nothing to debug.')
return

0 comments on commit 095d240

Please sign in to comment.