Skip to content

Commit

Permalink
Python 2.5 compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Feb 18, 2014
1 parent 095d240 commit fe1d4c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pudb/ipython.py
@@ -1,3 +1,5 @@
from __future__ import with_statement

import sys
import os

Expand Down
4 changes: 3 additions & 1 deletion pudb/lowlevel.py
Expand Up @@ -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)

Expand Down

0 comments on commit fe1d4c8

Please sign in to comment.