summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-05-07 16:42:51 +0000
committerBenjamin Peterson <benjamin@python.org>2010-05-07 16:42:51 +0000
commit02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6 (patch)
tree31bf3091cf49f26d4af876b50521c78ff83bbdaa /Modules
parent97c18ab6a52774364511bb5e4bf0444af4e700b9 (diff)
downloadcpython-git-02a004ea1de27a456cc1471b4d13a9ba8a0c7ce6.tar.gz
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 827fa43d54..6a6f0ded96 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 {