mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +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
|
|
@ -130,10 +130,8 @@ class TclTest(unittest.TestCase):
|
|||
import os
|
||||
old_display = None
|
||||
import sys
|
||||
if (sys.platform.startswith('win') or
|
||||
sys.platform.startswith('darwin') or
|
||||
sys.platform.startswith('cygwin')):
|
||||
return # no failure possible on windows?
|
||||
if sys.platform.startswith(('win', 'darwin', 'cygwin')):
|
||||
return # no failure possible on windows?
|
||||
if 'DISPLAY' in os.environ:
|
||||
old_display = os.environ['DISPLAY']
|
||||
del os.environ['DISPLAY']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue