[pypy-svn] r29756 - pypy/dist/pypy/translator/tool
guido at codespeak.net
guido at codespeak.net
Fri Jul 7 18:04:34 CEST 2006
Author: guido
Date: Fri Jul 7 18:04:33 2006
New Revision: 29756
Modified:
pypy/dist/pypy/translator/tool/make_dot.py
Log:
(cfbolz, guido) fixed flowgraph viewer.
Modified: pypy/dist/pypy/translator/tool/make_dot.py
==============================================================================
--- pypy/dist/pypy/translator/tool/make_dot.py (original)
+++ pypy/dist/pypy/translator/tool/make_dot.py Fri Jul 7 18:04:33 2006
@@ -102,7 +102,7 @@
def visit_FunctionGraph(self, funcgraph):
name = self.prefix # +'_'+funcgraph.name
data = funcgraph.name
- if hasattr(funcgraph, 'source'):
+ if getattr(funcgraph, 'source', None) is not None:
source = funcgraph.source
if self.VERBOSE:
data += "\\n"
More information about the Pypy-commit
mailing list