summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-04-29 18:57:35 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-04-29 18:57:35 +0200
commitae9fc22fd154ea7d16606cdf2880ed86c2eab1b1 (patch)
treed6c0ba79292ebfd24f91e6e8023edd872a9a362a
parenta176b77c22ef0c0263ca4f956b9b7c91ea659885 (diff)
parent6970c0ba8ea685cde2fa0cb182f351854911d6bd (diff)
downloadpep8-ae9fc22fd154ea7d16606cdf2880ed86c2eab1b1.tar.gz
Merge pull request #280 from lordhellcito/patch-1
The Windows platform does not define signal SIGPIPE
-rwxr-xr-xpep8.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index a254716..0671ac7 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1918,7 +1918,7 @@ def _main():
# Handle "Broken pipe" gracefully
try:
signal.signal(signal.SIGPIPE, lambda signum, frame: sys.exit(1))
- except ValueError:
+ except AttributeError:
pass # not supported on Windows
pep8style = StyleGuide(parse_argv=True, config_file=True)