commit | 24d659daafd0e6c1514ee912f06f7b7310545e09 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sun Oct 23 23:49:42 2011 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sun Oct 23 23:49:42 2011 +0200 |
tree | dfde423cd56334b8e85e8778b491f928d6a2c20b | |
parent | dcbb822c08e75dbb45afe1c435af95961f22387a [diff] [blame] |
Use InterruptedError instead of checking for EINTR
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index 2c5c888..a0aadb9 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py
@@ -450,10 +450,8 @@ while True: try: return func(*args) - except (OSError, IOError) as e: - if e.errno == errno.EINTR: - continue - raise + except InterruptedError: + continue def call(*popenargs, timeout=None, **kwargs):