Commit 5be84f3e authored by Axel Haustant's avatar Axel Haustant

Update _compat.py

Support both __builtins__ as a dictionary and a module.
parent 3877e689
......@@ -49,7 +49,7 @@ else:
return unicode(s)
# Helpers
reduce = __builtins__.reduce
reduce = __builtins__['reduce'] if isinstance(__builtins__, dict) else __builtins__.reduce
from urlparse import urljoin
......
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