Sha256: bbb1fff7ddd2e67bcd4d216fd369eff28518714ffda18e5cf028b19c9343d1e0

Contents?: true

Size: 524 Bytes

Versions: 20

Compression:

Stored size: 524 Bytes

Contents

import sys

PY3 = sys.version_info[0] == 3

if PY3:
  import builtins
else:
  import __builtin__ as builtins

if PY3:
  exec_ = getattr(builtins, 'exec')
else:
  def exec_(_code_, _globals_=None, _locals_=None):
    """Execute code in a namespace."""
    if _globals_ is None:
      frame = sys._getframe(1)
      _globals_ = frame.f_globals
      if _locals_ is None:
        _locals_ = frame.f_locals
      del frame
    elif _locals_ is None:
      _locals_ = _globals_
    exec("""exec _code_ in _globals_, _locals_""")

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
pycall-1.5.1 lib/pycall/python/PyCall/six.py
pycall-1.5.0 lib/pycall/python/PyCall/six.py
pycall-1.4.2 lib/pycall/python/PyCall/six.py
pycall-1.4.1 lib/pycall/python/PyCall/six.py
pycall-1.4.0 lib/pycall/python/PyCall/six.py
pycall-1.3.1 lib/pycall/python/PyCall/six.py
pycall-1.3.0 lib/pycall/python/PyCall/six.py
pycall-1.3.0.dev lib/pycall/python/PyCall/six.py
pycall-1.2.1 lib/pycall/python/PyCall/six.py
pycall-1.2.0 lib/pycall/python/PyCall/six.py
pycall-1.2.0.beta1 lib/pycall/python/PyCall/six.py
pycall-1.1.0.rc1 lib/pycall/python/PyCall/six.py
pycall-1.0.3 lib/pycall/python/PyCall/six.py
pycall-1.0.2-x86-mingw32 lib/pycall/python/PyCall/six.py
pycall-1.0.2-x64-mingw32 lib/pycall/python/PyCall/six.py
pycall-1.0.2 lib/pycall/python/PyCall/six.py
pycall-1.0.1-x86-mingw32 lib/pycall/python/PyCall/six.py
pycall-1.0.1-x64-mingw32 lib/pycall/python/PyCall/six.py
pycall-1.0.1 lib/pycall/python/PyCall/six.py
pycall-1.0.0 lib/pycall/python/PyCall/six.py