summaryrefslogtreecommitdiffstats
path: root/Lib/webbrowser.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-05-04 09:21:43 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-05-04 09:21:43 (GMT)
commitbac788a3cd348203a5fdabba52e5faf65bf35c5e (patch)
tree3c5bfe8295936ad51df617ef0fd053ebac684357 /Lib/webbrowser.py
parentc5e378da41641d5bc1e9b5c6c11bd470ff90b3e3 (diff)
downloadcpython-bac788a3cd348203a5fdabba52e5faf65bf35c5e.zip
cpython-bac788a3cd348203a5fdabba52e5faf65bf35c5e.tar.gz
cpython-bac788a3cd348203a5fdabba52e5faf65bf35c5e.tar.bz2
Replace str.find()!=1 with the more readable "in" operator.
Diffstat (limited to 'Lib/webbrowser.py')
-rw-r--r--Lib/webbrowser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index cb9dbb3..f8b41e5 100644
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -22,7 +22,7 @@ def get(using=None):
else:
alternatives = _tryorder
for browser in alternatives:
- if browser.find('%s') > -1:
+ if '%s' in browser:
# User gave us a command line, don't mess with it.
return GenericBrowser(browser)
else: