[pypy-svn] r21559 - pypy/dist/pypy/annotation
arigo at codespeak.net
arigo at codespeak.net
Fri Dec 23 22:53:45 CET 2005
Author: arigo
Date: Fri Dec 23 22:53:43 2005
New Revision: 21559
Modified:
pypy/dist/pypy/annotation/description.py
Log:
issue175 resolved
Make sure that specialized function names are valid identifiers. Issue 175
shows an example where we get spaces in the name, which confuses dot quite a
bit.
Modified: pypy/dist/pypy/annotation/description.py
==============================================================================
--- pypy/dist/pypy/annotation/description.py (original)
+++ pypy/dist/pypy/annotation/description.py Fri Dec 23 22:53:43 2005
@@ -3,6 +3,7 @@
from pypy.interpreter.pycode import cpython_code_signature
from pypy.interpreter.argument import rawshape
from pypy.interpreter.argument import ArgErr
+from pypy.tool.sourcetools import valid_identifier
class CallFamily:
@@ -181,7 +182,7 @@
return str(thing)[:30]
if key is not None and alt_name is None:
- postfix = nameof(key)
+ postfix = valid_identifier(nameof(key))
alt_name = "%s__%s"%(self.name, postfix)
graph = self.buildgraph(alt_name, builder)
self._cache[key] = graph
More information about the Pypy-commit
mailing list