commit | e7fc50f2d03a6b62e4b4201c89b2c0185c90f697 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Dec 03 22:54:21 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Dec 03 22:54:21 2007 +0000 |
tree | 836034eb187c29177ffaabb74b39ba16ed71ddd1 | |
parent | c6fe37bab927bd00e0f2fed8a431adb7d2b6d303 [diff] [blame] |
Add an errors parameter to open() and TextIOWrapper() to specify error handling.
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 458d0ba..de4641c 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c
@@ -915,6 +915,7 @@ return NULL; } cr.real = PyFloat_AsDouble(tmp); + cr.imag = 0.0; /* Shut up compiler warning */ Py_DECREF(tmp); } if (i == NULL) {