vregistry.py
changeset 5627 a7e40cccdc9b
parent 5572 df5551d697e8
parent 5607 38d43dc5ee57
child 5655 ef903fff826d
--- a/vregistry.py	Tue Jun 01 08:34:35 2010 +0200
+++ b/vregistry.py	Wed Jun 02 13:02:47 2010 +0200
@@ -439,6 +439,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
@@ -453,6 +456,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