[pypy-svn] r20921 - in pypy/dist/pypy/jit: . test

arigo at codespeak.net arigo at codespeak.net
Fri Dec 9 11:37:00 CET 2005


Author: arigo
Date: Fri Dec  9 11:36:58 2005
New Revision: 20921

Added:
   pypy/dist/pypy/jit/tlopcode.py
      - copied unchanged from r20919, pypy/dist/pypy/jit/opcode.py
Removed:
   pypy/dist/pypy/jit/opcode.py
Modified:
   pypy/dist/pypy/jit/test/test_tl.py
   pypy/dist/pypy/jit/tl.py
Log:
Renamed opcode.py to tlopcode.py to avoid conficts with the stdlib module.


Modified: pypy/dist/pypy/jit/test/test_tl.py
==============================================================================
--- pypy/dist/pypy/jit/test/test_tl.py	(original)
+++ pypy/dist/pypy/jit/test/test_tl.py	Fri Dec  9 11:36:58 2005
@@ -1,7 +1,7 @@
 import py
 import operator
 from pypy.jit.tl import interp, compile
-from pypy.jit.opcode import *
+from pypy.jit.tlopcode import *
 
 from pypy.translator.translator import TranslationContext
 from pypy.annotation import policy

Modified: pypy/dist/pypy/jit/tl.py
==============================================================================
--- pypy/dist/pypy/jit/tl.py	(original)
+++ pypy/dist/pypy/jit/tl.py	Fri Dec  9 11:36:58 2005
@@ -1,8 +1,8 @@
 '''Toy Language'''
 
 import py
-from opcode import *
-import opcode
+from tlopcode import *
+import tlopcode
 
 def char2int(c):
     t = ord(c)
@@ -125,7 +125,7 @@
         if t[0].endswith(':'):
             labels[ t[0][:-1] ] = len(bytecode)
             continue
-        bytecode.append( opcode.names[ t[0] ] )
+        bytecode.append( tlopcode.names[ t[0] ] )
         if len(t) > 1:
             try:
                 bytecode.append( int(t[1]) )



More information about the Pypy-commit mailing list