Vinay Sajip  committed e79aac7

Minor change to minimise diffs with upstream.

  • Participants
  • Parent commits 9c8b09c
  • Branches single-codebase

Comments (0)

Files changed (1)


 except NameError:
     basestring = str
     from io import StringIO
-    from functools import reduce
     exec_ = eval("exec")
     def execfile(fn, globs=None, locs=None):
         if globs is None:
         if locs is None:
             locs = globs
         exec_(compile(open(fn).read(), fn, 'exec'), globs, locs)
+    import functools
+    reduce = functools.reduce
 # capture these to bypass sandboxing
 from os import utime