Commit d0c3b6a2 authored by Stefan Behnel's avatar Stefan Behnel

Py2.3 fix

parent b2a2f5d6
...@@ -161,14 +161,15 @@ except NameError: # Py3 ...@@ -161,14 +161,15 @@ except NameError: # Py3
py_long = int py_long = int
try: try:
# Python 3
from builtins import set
except ImportError:
try: try:
# Python 2.4+
from __builtin__ import set from __builtin__ import set
except AttributeError: except ImportError:
# Py 2.3 # Py 2.3
from sets import Set as set from sets import Set as set
except ImportError:
# Python 3
from builtins import set
# Predefined types # Predefined types
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment