mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Make use of new str.startswith/endswith semantics.
Occurences in email and compiler were ignored due to backwards compat requirements.
This commit is contained in:
parent
3ebef999e6
commit
b2afe855e5
11 changed files with 14 additions and 20 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue