summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-04-18 19:27:38 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-04-18 19:27:38 +0200
commit56d211c469da5d39bf8eeed74a3cc433c992048a (patch)
tree32f99e5c7866008a3ed7767cf525b699d665e2a6
parentb14a97e5753b9c63794b76a8ef66ef9a03186b79 (diff)
parent69e2b69c7cef4b243c119686d6354f6c33f51735 (diff)
downloadpep8-56d211c469da5d39bf8eeed74a3cc433c992048a.tar.gz
Merge pull request #275 from winny-/master
Handle broken pipe in check_files()
-rwxr-xr-xpep8.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pep8.py b/pep8.py
index 2c683ab..1e52c3e 100755
--- a/pep8.py
+++ b/pep8.py
@@ -55,6 +55,7 @@ import time
import inspect
import keyword
import tokenize
+import errno
from optparse import OptionParser
from fnmatch import fnmatch
try:
@@ -1672,6 +1673,9 @@ class StyleGuide(object):
runner(path)
except KeyboardInterrupt:
print('... stopped')
+ except IOError as e:
+ if e.errno != errno.EPIPE:
+ raise e
report.stop()
return report