equal
deleted
inserted
replaced
437 return True |
437 return True |
438 elif fileordir[-3:] == '.py': |
438 elif fileordir[-3:] == '.py': |
439 mdate = self._mdate(fileordir) |
439 mdate = self._mdate(fileordir) |
440 if mdate is None: |
440 if mdate is None: |
441 continue # backup file, see _mdate implementation |
441 continue # backup file, see _mdate implementation |
|
442 elif "flymake" in fileordir: |
|
443 # flymake + pylint in use, don't consider these they will corrupt the registry |
|
444 continue |
442 if fileordir not in lastmodifs or lastmodifs[fileordir] < mdate: |
445 if fileordir not in lastmodifs or lastmodifs[fileordir] < mdate: |
443 self.info('File %s changed since last visit', fileordir) |
446 self.info('File %s changed since last visit', fileordir) |
444 return True |
447 return True |
445 return False |
448 return False |
446 |
449 |
451 return |
454 return |
452 self._loadedmods[modname] = {} |
455 self._loadedmods[modname] = {} |
453 mdate = self._mdate(filepath) |
456 mdate = self._mdate(filepath) |
454 if mdate is None: |
457 if mdate is None: |
455 return # backup file, see _mdate implementation |
458 return # backup file, see _mdate implementation |
|
459 elif "flymake" in filepath: |
|
460 # flymake + pylint in use, don't consider these they will corrupt the registry |
|
461 return |
456 # set update time before module loading, else we get some reloading |
462 # set update time before module loading, else we get some reloading |
457 # weirdness in case of syntax error or other error while importing the |
463 # weirdness in case of syntax error or other error while importing the |
458 # module |
464 # module |
459 self._lastmodifs[filepath] = mdate |
465 self._lastmodifs[filepath] = mdate |
460 # load the module |
466 # load the module |