Commit f3a49ca1 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #398 from noirbizarre/patch-1

Fix compat for CPython/PyPy 2.x
parents b434ae19 5be84f3e
......@@ -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