]> granicus.if.org Git - python/commitdiff
s/endswith/startswith/
authorTim Peters <tim.peters@gmail.com>
Wed, 1 Aug 2001 20:23:18 +0000 (20:23 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 1 Aug 2001 20:23:18 +0000 (20:23 +0000)
Lib/test/test_import.py

index 0f9841c5b88e8438b3838ef1516292542ed720b4..d0536095059c9da7903c6ab42508e4b404ea7d0d 100644 (file)
@@ -20,7 +20,7 @@ sys.path.insert(0, os.curdir)
 
 source = TESTFN + ".py"
 pyo = TESTFN + ".pyo"
-if sys.platform.endswith('java'):
+if sys.platform.startswith('java'):
     pyc = TESTFN + "$py.class"
 else:
     pyc = TESTFN + ".pyc"