Commit 5fee5d77 authored by Jim Fulton's avatar Jim Fulton

sigh, map returns an iterator on Python 3

parent f598679c
...@@ -1465,7 +1465,7 @@ def _default_globals(): ...@@ -1465,7 +1465,7 @@ def _default_globals():
globals_defs = {'sys': sys, 'os': os, 'platform': platform, 're': re,} globals_defs = {'sys': sys, 'os': os, 'platform': platform, 're': re,}
# major python major_python_versions as python2 and python3 # major python major_python_versions as python2 and python3
major_python_versions = map(str, platform.python_version_tuple()) major_python_versions = tuple(map(str, platform.python_version_tuple()))
globals_defs.update({'python2': major_python_versions[0] == '2', globals_defs.update({'python2': major_python_versions[0] == '2',
'python3': major_python_versions[0] == '3'}) 'python3': major_python_versions[0] == '3'})
......
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