# HG changeset patch # User Alexandre Fayolle # Date 1275122020 -7200 # Node ID 38d43dc5ee573d3337aef1e9049da1b66fe519ab # Parent 61b28589d33ff994ffd9a3996f959b7d2b0eb0ab skip flymake junk when reloading this avoids nasty ex aequo scores in selectors in dev. mode diff -r 61b28589d33f -r 38d43dc5ee57 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