summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-02 09:50:06 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-02 09:50:06 +0300
commit3a8bae53d90876d63526f98dc07a072a787a2964 (patch)
tree91767b8205c42968dda0402fddd9192b0f10fb2c /Python/errors.c
parent740a920c3185b3766c5d9ae09d6e045d161fcacc (diff)
parenteb4bdf87ec1f263c92127bef4fe101111bf91b93 (diff)
downloadcpython-3a8bae53d90876d63526f98dc07a072a787a2964.tar.gz
Issue #22977: Fixed formatting Windows error messages on Wine.
Patch by Martin Panter.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 17e3bcce83..1172c59047 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -491,7 +491,7 @@ PyErr_SetFromErrnoWithFilenameObjects(PyObject *exc, PyObject *filenameObject, P
/* Only ever seen this in out-of-mem
situations */
s_buf = NULL;
- message = PyUnicode_FromFormat("Windows Error 0x%X", i);
+ message = PyUnicode_FromFormat("Windows Error 0x%x", i);
} else {
/* remove trailing cr/lf and dots */
while (len > 0 && (s_buf[len-1] <= L' ' || s_buf[len-1] == L'.'))
@@ -600,7 +600,7 @@ PyObject *PyErr_SetExcFromWindowsErrWithFilenameObjects(
NULL); /* no args */
if (len==0) {
/* Only seen this in out of mem situations */
- message = PyUnicode_FromFormat("Windows Error 0x%X", err);
+ message = PyUnicode_FromFormat("Windows Error 0x%x", err);
s_buf = NULL;
} else {
/* remove trailing cr/lf and dots */