[pypy-svn] r9659 - pypy/dist/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Sat Mar 5 16:28:29 CET 2005


Author: arigo
Date: Sat Mar  5 16:28:29 2005
New Revision: 9659

Modified:
   pypy/dist/pypy/annotation/classdef.py
Log:
Quick fix for the annotator discovering new classes...



Modified: pypy/dist/pypy/annotation/classdef.py
==============================================================================
--- pypy/dist/pypy/annotation/classdef.py	(original)
+++ pypy/dist/pypy/annotation/classdef.py	Sat Mar  5 16:28:29 2005
@@ -81,7 +81,10 @@
             self.add_source_for_attribute(name, sources.get(name, cls), self)
 
     def add_source_for_attribute(self, attr, source, clsdef=None):
-        self.find_attribute(attr).sources[source] = clsdef
+        attrdef = self.find_attribute(attr)
+        attrdef.sources[source] = clsdef
+        for position in attrdef.read_locations:
+            self.bookkeeper.annotator.reflowfromposition(position)
 
     def locate_attribute(self, attr):
         for cdef in self.getmro():



More information about the Pypy-commit mailing list