Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

another fix

  • Loading branch information...
commit 2e99b2363cc909943489383b1f1687c64037e65a 1 parent 0c7af76
@robertwb robertwb authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 Cython/Shadow.py
View
13 Cython/Shadow.py
@@ -190,10 +190,15 @@ def __call__(self, value=None):
try:
- set
-except NameError:
- # Python 2.3
- from sets import Set as set, ImmutableSet as frozenset
+ # Python 3
+ from builtins import set, frozenset
+except ImportError:
+ try:
+ # Python 2.4+
+ from __builtin__ import set, frozenset
+ except ImportError:
+ # Py 2.3
+ from sets import Set as set, ImmutableSet as frozenset
# Predefined types
Please sign in to comment.
Something went wrong with that request. Please try again.