diff options
author | Gabi Davar <grizzly.nyo@gmail.com> | 2016-01-09 12:41:50 +0200 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2016-01-09 17:17:40 -0500 |
commit | 938acb42924bbea0d59398deaf00d05d0e02b295 (patch) | |
tree | e7f6a179eb1fd987033fa7626d62fa8d6aa78176 /python | |
parent | ec9ee3ab43a6eb584e268d5bb9ddd6894e0a0447 (diff) | |
download | pycurl-938acb42924bbea0d59398deaf00d05d0e02b295.tar.gz |
trigger ImportError for win32 instead of AttributeError
Diffstat (limited to 'python')
-rw-r--r-- | python/curl/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/curl/__init__.py b/python/curl/__init__.py index e5aa40f..315a383 100644 --- a/python/curl/__init__.py +++ b/python/curl/__init__.py @@ -23,7 +23,8 @@ else: try: import signal - signal.signal(signal.SIGPIPE, signal.SIG_IGN) + from signal import SIGPIPE, SIG_IGN + signal.signal(SIGPIPE, SIG_IGN) except ImportError: pass |