diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-18 19:27:38 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-18 19:27:38 +0200 |
commit | 56d211c469da5d39bf8eeed74a3cc433c992048a (patch) | |
tree | 32f99e5c7866008a3ed7767cf525b699d665e2a6 | |
parent | b14a97e5753b9c63794b76a8ef66ef9a03186b79 (diff) | |
parent | 69e2b69c7cef4b243c119686d6354f6c33f51735 (diff) | |
download | pep8-56d211c469da5d39bf8eeed74a3cc433c992048a.tar.gz |
Merge pull request #275 from winny-/master
Handle broken pipe in check_files()
-rwxr-xr-x | pep8.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |