Commits

Hong Minhee  committed 08ac46e

httpdomain: PyPy & CPython compatibility.

  • Participants
  • Parent commits 739105e
  • Tags httpdomain-1.1.4

Comments (0)

Files changed (3)

File httpdomain/doc/conf.py

 # The short X.Y version.
 version = '1.1'
 # The full version, including alpha/beta/rc tags.
-release = '1.1.3'
+release = '1.1.4'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

File httpdomain/setup.py

 
 setup(
     name='sphinxcontrib-httpdomain',
-    version='1.1.3',
+    version='1.1.4',
     url='http://bitbucket.org/birkenfeld/sphinx-contrib',
     download_url='http://pypi.python.org/pypi/sphinxcontrib-httpdomain',
     license='BSD',

File httpdomain/sphinxcontrib/autohttp/flask.py

     module_name, expr = import_name.split(':', 1)
     mod = __import__(module_name)
     mod = reduce(getattr, module_name.split('.')[1:], mod)
-    return eval(expr, __builtins__.__dict__, mod.__dict__)
+    globals = __builtins__
+    if not isinstance(globals, dict):
+        globals = globals.__dict__
+    return eval(expr, globals, mod.__dict__)
 
 
 def http_directive(method, path, content):