diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-04-04 22:55:58 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-04-04 22:55:58 (GMT) |
commit | bc0e9108261693b6278687f4fb4709ff76c2e543 (patch) | |
tree | afef5d4734034ed0268950cf06321aefd4154ff3 /Lib/webbrowser.py | |
parent | 2f486b7fa6451b790b154e6e4751239d69d46952 (diff) | |
download | cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.zip cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.gz cpython-bc0e9108261693b6278687f4fb4709ff76c2e543.tar.bz2 |
Convert a pile of obvious "yes/no" functions to return bool.
Diffstat (limited to 'Lib/webbrowser.py')
-rw-r--r-- | Lib/webbrowser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index 19443ca..1509b7a 100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -78,15 +78,15 @@ def _synthesize(browser): def _iscommand(cmd): - """Return true if cmd can be found on the executable search path.""" + """Return True if cmd can be found on the executable search path.""" path = os.environ.get("PATH") if not path: - return 0 + return False for d in path.split(os.pathsep): exe = os.path.join(d, cmd) if os.path.isfile(exe): - return 1 - return 0 + return True + return False PROCESS_CREATION_DELAY = 4 |