skip flymake junk when reloading stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Sat, 29 May 2010 10:33:40 +0200
branchstable
changeset 5607 38d43dc5ee57
parent 5606 61b28589d33f
child 5608 f9ab62103ad4
skip flymake junk when reloading this avoids nasty ex aequo scores in selectors in dev. mode
vregistry.py
--- a/vregistry.py	Sat May 29 10:18:02 2010 +0200
+++ b/vregistry.py	Sat May 29 10:33:40 2010 +0200
@@ -448,6 +448,9 @@
                 mdate = self._mdate(fileordir)
                 if mdate is None:
                     continue # backup file, see _mdate implementation
+                elif "flymake" in fileordir:
+                    # flymake + pylint in use, don't consider these they will corrupt the registry
+                    continue
                 if fileordir not in lastmodifs or lastmodifs[fileordir] < mdate:
                     self.info('File %s changed since last visit', fileordir)
                     return True
@@ -462,6 +465,9 @@
         mdate = self._mdate(filepath)
         if mdate is None:
             return # backup file, see _mdate implementation
+        elif "flymake" in filepath:
+            # flymake + pylint in use, don't consider these they will corrupt the registry
+            return
         # set update time before module loading, else we get some reloading
         # weirdness in case of syntax error or other error while importing the
         # module