From b29614e047110f4d9af993a6cdec4e3fb7ef9738 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 9 Oct 2012 11:16:03 -0400 Subject: compare singletons by identity not equality (closes #16712) Patch from Serhiy Storchaka. --- Lib/pydoc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/pydoc.py') diff --git a/Lib/pydoc.py b/Lib/pydoc.py index aa296c4c79..fa531e9051 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -2551,8 +2551,8 @@ def cli(): 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 -- cgit v1.2.1