mirror of
https://github.com/jazzband/contextlib2.git
synced 2026-03-16 21:50:24 +00:00
Restored support for Python 2.6
This commit is contained in:
parent
d6aabae9db
commit
15485962d1
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ class suppress:
|
|||
|
||||
|
||||
# Context manipulation is Python 3 only
|
||||
_HAVE_EXCEPTION_CHAINING = sys.version_info.major >= 3
|
||||
_HAVE_EXCEPTION_CHAINING = sys.version_info[0] >= 3
|
||||
if _HAVE_EXCEPTION_CHAINING:
|
||||
def _make_context_fixer(frame_exc):
|
||||
def _fix_exception_context(new_exc, old_exc):
|
||||
|
|
|
|||
Loading…
Reference in a new issue