[pypy-svn] rev 827 - pypy/trunk/src/pypy/interpreter
hpk at codespeak.net
hpk at codespeak.net
Tue Jun 17 23:41:09 CEST 2003
Author: hpk
Date: Tue Jun 17 23:41:09 2003
New Revision: 827
Modified:
pypy/trunk/src/pypy/interpreter/opcode.py
Log:
issue the opcode-warning via a call to warnings.warn
because otherwise i get spammed when using my XPython :-)
Modified: pypy/trunk/src/pypy/interpreter/opcode.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/opcode.py (original)
+++ pypy/trunk/src/pypy/interpreter/opcode.py Tue Jun 17 23:41:09 2003
@@ -702,7 +702,8 @@
if opname in globals():
fn = globals()[opname]
elif not opname.startswith('<') and i>0:
- print "* Warning, missing opcode %s" % opname
+ import warnings
+ warnings.warn("* Warning, missing opcode %s" % opname)
dispatch_table.append(fn)
More information about the Pypy-commit
mailing list