Advanced Computing Platform for Theoretical Physics

Commit a57393f1 authored by Justin Bayer's avatar Justin Bayer
Browse files

added a line to move ``basestring`` into the global namespace of compat.py, making it importable

parent 8142d3c7
......@@ -2,7 +2,10 @@ import sys
if sys.version_info[0] == 2:
range = xrange
# The following line looks weird, yes. However, if it is not added
# ``basestring`` will not be part of the namespace of this module, and
# henceforth not be importable.
basestring = basestring
else:
from builtins import range
basestring = str
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