summaryrefslogtreecommitdiff
path: root/pep8.py
diff options
context:
space:
mode:
Diffstat (limited to 'pep8.py')
-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