Tarek Ziadé  committed 25ea751

make sure skip_warning works with no files

  • Participants
  • Parent commits c8fbac6
  • Branches python3

Comments (0)

Files changed (1)

File flake8/

 import re
+import os
 def skip_warning(warning):
     # XXX quick dirty hack, just need to keep the line in the warning
+    if not os.path.isfile(warning.filename):
+        return False
     line = open(warning.filename).readlines()[warning.lineno - 1]
     return skip_line(line)