Skip to content

Commit 93c7ba6

Browse files
ByronHarmon758
authored andcommitted
Revert "Remove basestring reference, no py2 support"
This reverts commit 2ceedc9.
1 parent 066f038 commit 93c7ba6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

smmap/util.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ def buffer(obj, offset, size):
2323

2424

2525
def string_types():
26-
return str
26+
if sys.version_info[0] >= 3:
27+
return str
28+
else:
29+
return basestring
30+
2731

2832
def align_to_mmap(num, round_up):
2933
"""

0 commit comments

Comments
 (0)