summaryrefslogtreecommitdiff
path: root/Lib/_osx_support.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/_osx_support.py')
-rw-r--r--Lib/_osx_support.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_osx_support.py b/Lib/_osx_support.py
index b3aad56582..8412e45b70 100644
--- a/Lib/_osx_support.py
+++ b/Lib/_osx_support.py
@@ -38,7 +38,7 @@ def _find_executable(executable, path=None):
paths = path.split(os.pathsep)
base, ext = os.path.splitext(executable)
- if (sys.platform == 'win32' or os.name == 'os2') and (ext != '.exe'):
+ if (sys.platform == 'win32') and (ext != '.exe'):
executable = executable + '.exe'
if not os.path.isfile(executable):
@@ -94,7 +94,7 @@ def _get_system_version():
_SYSTEM_VERSION = ''
try:
f = open('/System/Library/CoreServices/SystemVersion.plist')
- except IOError:
+ except OSError:
# We're on a plain darwin box, fall back to the default
# behaviour.
pass