Skip to content

Commit

Permalink
fix issue ironport#84.
Browse files Browse the repository at this point in the history
use "from libc cimport strerror".
  • Loading branch information
samrushing committed Mar 11, 2019
1 parent 1b56391 commit 56b7ae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coro/oserrors.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ handling.
import errno
import new
import sys
cimport libc
from libc.string cimport strerror

err_map = {}

Expand All @@ -51,7 +51,7 @@ def raise_oserror(int error_number):
:Parameters:
- `error_number`: The errno value to raise.
"""
map_exception(OSError(error_number, libc.strerror(error_number)))
map_exception(OSError(error_number, strerror(error_number)))

__m = sys.modules['coro.oserrors']
__g = __m.__dict__
Expand Down

0 comments on commit 56b7ae2

Please sign in to comment.