Author: Amaury Forgeot d'Arc <[email protected]>
Branch: stdlib-2.7.9
Changeset: r75821:b2e29ad07409
Date: 2015-02-10 23:18 +0100
http://bitbucket.org/pypy/pypy/changeset/b2e29ad07409/
Log: Looks like RPython WindowsError instances only have winerror.
diff --git a/pypy/module/_ssl/interp_win32.py b/pypy/module/_ssl/interp_win32.py
--- a/pypy/module/_ssl/interp_win32.py
+++ b/pypy/module/_ssl/interp_win32.py
@@ -76,7 +76,7 @@
with lltype.scoped_alloc(rwin32.LPDWORD.TO, 1) as size_ptr:
if not CertGetEnhancedKeyUsage(pCertCtx, flags, None, size_ptr):
last_error = rwin32.lastSavedWindowsError()
- if last_error.errno == CRYPT_E_NOT_FOUND:
+ if last_error.winerror == CRYPT_E_NOT_FOUND:
return space.w_True
raise wrap_windowserror(space, last_error)
@@ -86,7 +86,7 @@
# Now get the actual enhanced usage property
if not CertGetEnhancedKeyUsage(pCertCtx, flags, usage, size_ptr):
last_error= rwin32.lastSavedWindowsError()
- if last_error.errno == CRYPT_E_NOT_FOUND:
+ if last_error.winerror == CRYPT_E_NOT_FOUND:
return space.w_True
raise wrap_windowserror(space, last_error)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit