[pypy-svn] r17622 - pypy/dist/pypy/translator/c
arigo at codespeak.net
arigo at codespeak.net
Sat Sep 17 19:48:53 CEST 2005
Author: arigo
Date: Sat Sep 17 19:48:53 2005
New Revision: 17622
Modified:
pypy/dist/pypy/translator/c/extfunc.py
Log:
Don't put dots in the macro name.
Modified: pypy/dist/pypy/translator/c/extfunc.py
==============================================================================
--- pypy/dist/pypy/translator/c/extfunc.py (original)
+++ pypy/dist/pypy/translator/c/extfunc.py Sat Sep 17 19:48:53 2005
@@ -136,7 +136,7 @@
# a substring of PyExc_%s
name = pyexccls.__name__
if pyexccls.__module__ != 'exceptions':
- name = '%s_%s' % (pyexccls.__module__, name)
+ name = '%s_%s' % (pyexccls.__module__.replace('.', '__'), name)
yield ('RPyExc_%s' % name, exc_llvalue)
More information about the Pypy-commit
mailing list