summaryrefslogtreecommitdiff
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-06-09 20:43:48 +0000
committerGeorg Brandl <georg@python.org>2006-06-09 20:43:48 +0000
commitb2afe855e5d75a570707d6bf0e32206e4b7b1c4d (patch)
treeb637a7e78de40cf155c471e702e9b465fcd0625d /Lib/idlelib/EditorWindow.py
parent3ebef999e60cc63baafcdcfa0fd05c063715a66c (diff)
downloadcpython-git-b2afe855e5d75a570707d6bf0e32206e4b7b1c4d.tar.gz
Make use of new str.startswith/endswith semantics.
Occurences in email and compiler were ignored due to backwards compat requirements.
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 59440f09b2..76042933bb 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -649,7 +649,7 @@ class EditorWindow(object):
def __extra_help_callback(self, helpfile):
"Create a callback with the helpfile value frozen at definition time"
def display_extra_help(helpfile=helpfile):
- if not (helpfile.startswith('www') or helpfile.startswith('http')):
+ if not helpfile.startswith(('www', 'http')):
url = os.path.normpath(helpfile)
if sys.platform[:3] == 'win':
os.startfile(helpfile)