[pypy-svn] r66324 - pypy/branch/parser-compiler/pypy/interpreter/pyparser

benjamin at codespeak.net benjamin at codespeak.net
Fri Jul 17 21:43:51 CEST 2009


Author: benjamin
Date: Fri Jul 17 21:43:49 2009
New Revision: 66324

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/pyparser/parser.py
Log:
don't complain when the annotator calls this method multiple times

Modified: pypy/branch/parser-compiler/pypy/interpreter/pyparser/parser.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/pyparser/parser.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/pyparser/parser.py	Fri Jul 17 21:43:49 2009
@@ -32,9 +32,12 @@
 
     def _freeze_(self):
         # Remove some attributes not used in parsing.
-        del self.symbol_to_label
-        del self.symbol_names
-        del self.symbol_ids
+        try:
+            del self.symbol_to_label
+            del self.symbol_names
+            del self.symbol_ids
+        except AttributeError:
+            pass
         return True
 
 



More information about the Pypy-commit mailing list