diff options
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,10 +52,10 @@ except NameError: # Python 3 compatability hack due to no built-in file keyword in Python 3 # Due to two occurences of isinstance(<foo>, file) checking to see if something is of file type try: + file +except NameError: import io file = io.TextIOWrapper -except ImportError: - pass # Python2 if sys.version_info[0] == 2: pyparsing.ParserElement.enablePackrat() |