commit | b29614e047110f4d9af993a6cdec4e3fb7ef9738 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Tue Oct 09 11:16:03 2012 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Tue Oct 09 11:16:03 2012 -0400 |
tree | a15a5ac7b508c5033f640123f498a322f44b04ce | |
parent | a5119351519926971240f61d0c23a5fc5d00743e [diff] [blame] |
compare singletons by identity not equality (closes #16712) Patch from Serhiy Storchaka.
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index aa296c4..fa531e9 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py
@@ -2551,8 +2551,8 @@ if opt == '-w': writing = True - if start_server == True: - if port == None: + if start_server: + if port is None: port = 0 browse(port, open_browser=open_browser) return