summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-05-07 16:42:51 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-05-07 16:42:51 (GMT)
commit02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6 (patch)
tree31bf3091cf49f26d4af876b50521c78ff83bbdaa /Modules
parent97c18ab6a52774364511bb5e4bf0444af4e700b9 (diff)
downloadcpython-02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6.zip
cpython-02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6.tar.gz
cpython-02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6.tar.bz2
correct call
Diffstat (limited to 'Modules')
-rw-r--r--Modules/pwdmodule.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index 827fa43..6a6f0de 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -49,9 +49,7 @@ static void
sets(PyObject *v, int i, const char* val)
{
if (val) {
- PyObject *o = PyUnicode_DecodeFSDefault(val, strlen(val),
- Py_FileSystemDefaultEncoding,
- "surrogateescape");
+ PyObject *o = PyUnicode_DecodeFSDefault(val);
PyStructSequence_SET_ITEM(v, i, o);
}
else {