[pypy-svn] r9380 - pypy/dist/pypy/translator
pedronis at codespeak.net
pedronis at codespeak.net
Mon Feb 21 14:16:05 CET 2005
Author: pedronis
Date: Mon Feb 21 14:16:05 2005
New Revision: 9380
Modified:
pypy/dist/pypy/translator/geninterplevel.py
Log:
show func module and name in the warning
Modified: pypy/dist/pypy/translator/geninterplevel.py
==============================================================================
--- pypy/dist/pypy/translator/geninterplevel.py (original)
+++ pypy/dist/pypy/translator/geninterplevel.py Mon Feb 21 14:16:05 2005
@@ -568,7 +568,7 @@
return "(space.sys.get(space.str_w(%s)))" % self.nameof(func.__name__)
else:
print ("WARNING: accessing builtin modules different from sys or __builtin__"
- " is likely producing non-sense")
+ " is likely producing non-sense: %s %s" % (module.__name__, func.__name__))
name = self.uniquename('gbltin_' + func.__name__)
self.initcode.append('m.%s = space.getattr(%s, %s)' % (
name, self.nameof(module), self.nameof(func.__name__)))
More information about the Pypy-commit
mailing list