Skip to content

Commit ae9fc22

Browse files
committed
Merge pull request #280 from lordhellcito/patch-1
The Windows platform does not define signal SIGPIPE
2 parents a176b77 + 6970c0b commit ae9fc22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pep8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ def _main():
19181918
# Handle "Broken pipe" gracefully
19191919
try:
19201920
signal.signal(signal.SIGPIPE, lambda signum, frame: sys.exit(1))
1921-
except ValueError:
1921+
except AttributeError:
19221922
pass # not supported on Windows
19231923

19241924
pep8style = StyleGuide(parse_argv=True, config_file=True)

0 commit comments

Comments
 (0)