1. Tatsuo Ikeda
  2. django-pudebug

Commits

Tatsuo Ikeda  committed 4434aeb

ignore django

  • Participants
  • Parent commits 3bf751f
  • Branches default

Comments (0)

Files changed (2)

File .hgignore

View file
 *.pyo
 *.swp
 *.tmp
-
+tags
 ### setup.py
 build
 dist

File pudebug.py

View file
 old_import = __builtin__.__import__
 
 def pudebug():
-    # monkey patch
-    monkey_urwid()
+    try:
+        import django
+        # monkey patch
+        monkey_urwid()
+    except ImportError:
+        pass
     # start pudb
     set_trace()