Skip to content

Commit a3f9912

Browse files
committed
Initial Parallel Execution Concept
1 parent eec5328 commit a3f9912

File tree

9 files changed

+1040
-2
lines changed

9 files changed

+1040
-2
lines changed

graphql/core/compat.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
13
try:
24
str_type = basestring
35
str_is_unicode = False
@@ -10,10 +12,14 @@
1012
except NameError:
1113
unichr = chr
1214

13-
1415
if str_is_unicode:
1516
def native_str(s, errors=None):
1617
return s
1718
else:
1819
def native_str(s, errors=None):
1920
return s.encode(errors=errors)
21+
22+
if sys.version_info < (3, 0):
23+
PY3 = False
24+
else:
25+
PY3 = True

0 commit comments

Comments
 (0)