[Python-checkins] r85652 - python/branches/py3k/Python/errors.c

victor.stinner python-checkins at python.org
Sun Oct 17 21:03:16 CEST 2010


Author: victor.stinner
Date: Sun Oct 17 21:03:16 2010
New Revision: 85652
Log:
PyErr_SyntaxLocationEx() uses PyUnicode_DecodeFSDefault(), instead of
PyUnicode_FromString(), to decode the filename.
Modified:
 python/branches/py3k/Python/errors.c
Modified: python/branches/py3k/Python/errors.c
==============================================================================
--- python/branches/py3k/Python/errors.c	(original)
+++ python/branches/py3k/Python/errors.c	Sun Oct 17 21:03:16 2010
@@ -819,7 +819,7 @@
 }
 }
 if (filename != NULL) {
- tmp = PyUnicode_FromString(filename);
+ tmp = PyUnicode_DecodeFSDefault(filename);
 if (tmp == NULL)
 PyErr_Clear();
 else {


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /