[pypy-commit] pypy py3-winreg: fix FormatError -> FormatErrorW
mattip
pypy.commits at gmail.com
Sat Jan 6 17:15:56 EST 2018
Author: Matti Picus <matti.picus at gmail.com>
Branch: py3-winreg
Changeset: r93630:4099cdb5fe33
Date: 2018-01-07 00:14 +0200
http://bitbucket.org/pypy/pypy/changeset/4099cdb5fe33/
Log: fix FormatError -> FormatErrorW
diff --git a/pypy/module/_winreg/interp_winreg.py b/pypy/module/_winreg/interp_winreg.py
--- a/pypy/module/_winreg/interp_winreg.py
+++ b/pypy/module/_winreg/interp_winreg.py
@@ -8,10 +8,10 @@
from rpython.rlib.rarithmetic import r_uint, intmask
def raiseWindowsError(space, errcode, context):
- message = rwin32.FormatError(errcode)
+ message = rwin32.FormatErrorW(errcode)
w_errcode = space.newint(errcode)
raise OperationError(space.w_WindowsError,
- space.newtuple([w_errcode, space.newtext(message),
+ space.newtuple([w_errcode, space.newunicode(message),
space.w_None, w_errcode]))
class W_HKEY(W_Root):
More information about the pypy-commit
mailing list