Skip to content

Commit

Permalink
change import order of builtins to work when the 'future' package is …
Browse files Browse the repository at this point in the history
…installed in Python 2 (fix #24)
  • Loading branch information
dirk-thomas committed Jun 9, 2015
1 parent c96c580 commit e6dd00c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/python_qt_binding/binding_helper.py
Expand Up @@ -31,9 +31,11 @@
# POSSIBILITY OF SUCH DAMAGE.

try:
import builtins
except ImportError:
import __builtin__ as builtins
except ImportError:
# since the 'future' package provides a 'builtins' module in Python 2
# this must not be checked second
import builtins
import os
import sys

Expand Down

0 comments on commit e6dd00c

Please sign in to comment.