Browse Source
bpo-15999: Clean up of handling boolean arguments. (GH-15610)
bpo-15999: Clean up of handling boolean arguments. (GH-15610)
* Use the 'p' format unit instead of manually called PyObject_IsTrue(). * Pass boolean value instead 0/1 integers to functions that needs boolean. * Convert some arguments to boolean only once.pull/15640/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 69 additions and 78 deletions
-
8Lib/_pyio.py
-
2Lib/codeop.py
-
2Lib/doctest.py
-
8Lib/quopri.py
-
16Lib/test/datetimetester.py
-
2Lib/test/lock_tests.py
-
6Lib/test/test_builtin.py
-
2Lib/test/test_ioctl.py
-
6Lib/test/test_ordered_dict.py
-
16Lib/test/test_unicode.py
-
2Lib/threading.py
-
6Lib/tkinter/__init__.py
-
10Modules/_io/_iomodule.c
-
4Modules/_io/stringio.c
-
10Modules/_io/textio.c
-
6Modules/itertoolsmodule.c
-
2Modules/main.c
-
11Modules/parsermodule.c
-
4Objects/fileobject.c
-
20Python/bltinmodule.c
-
4Python/pylifecycle.c
Write
Preview
Loading…
Cancel
Save
Reference in new issue