Permalink
Browse files

Python 2.5 compatibility fixes

  • Loading branch information...
1 parent 095d240 commit fe1d4c88bc25df4ff5aa6cc53d69f0d022662581 @inducer committed Feb 18, 2014
Showing with 5 additions and 1 deletion.
  1. +2 −0 pudb/ipython.py
  2. +3 −1 pudb/lowlevel.py
View
@@ -1,3 +1,5 @@
+from __future__ import with_statement
+
import sys
import os
View
@@ -187,7 +187,9 @@ def format_exception(exc_tuple):
exc_value = StringExceptionValueWrapper(exc_value)
exc_tuple = exc_type, exc_value, exc_tb
- return format_exception(*exc_tuple, chain=hasattr(exc_value, "__context__"))
+ return format_exception(
+ *exc_tuple,
+ **dict(chain=hasattr(exc_value, "__context__")))
else:
return format_exception(*exc_tuple)

0 comments on commit fe1d4c8

Please sign in to comment.