[pypy-commit] pypy stdlib-2.7.9: Looks like RPython WindowsError instances only have winerror.
amauryfa
noreply at buildbot.pypy.org
Tue Feb 10 23:19:57 CET 2015
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
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)
More information about the pypy-commit
mailing list