[Jython-checkins] jython: Patched new.py against CPythonLib2.7

alex.gronholm jython-checkins at python.org
Wed Mar 14 23:30:45 CET 2012


http://hg.python.org/jython/rev/69d8454b7f26
changeset:   6377:69d8454b7f26
user:        Alex Grönholm <alex.gronholm at nextday.fi>
date:        Wed Mar 14 14:47:56 2012 -0700
summary:
  Patched new.py against CPythonLib2.7

files:
  Lib/new.py |  6 ------
  1 files changed, 0 insertions(+), 6 deletions(-)


diff --git a/Lib/new.py b/Lib/new.py
--- a/Lib/new.py
+++ b/Lib/new.py
@@ -16,10 +16,4 @@
 
 # XXX: Jython can't really create a code object like CPython does
 # (according to test.test_new)
-## CodeType is not accessible in restricted execution mode
-#try:
-#    from types import CodeType as code
-#except ImportError:
-#    pass
-
 from org.python.core import PyBytecode as code

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list