Simplify expression
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 17 Aug 2007 04:15:19 +0000 (04:15 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 17 Aug 2007 04:15:19 +0000 (04:15 +0000)
Lib/test/test_mhlib.py

index 09522f7de9589b60cf0393368d50d571c72401da..aea83ba09561e34bbd94cfba8c825b176ea6208e 100644 (file)
@@ -13,7 +13,7 @@ import io
 import sys
 import mhlib
 
-if sys.platform.startswith("win") or sys.platform.startswith("atheos"):
+if sys.platform.startswith(("win", "atheos")):
     # mhlib.updateline() renames a file to the name of a file that already
     # exists.  That causes a reasonable OS <wink> to complain in test_sequence
     # here, like the "OSError: [Errno 17] File exists" raised on Windows.