summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index 0f17964..240f701 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -187,11 +187,10 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384):
executable = sys.executable
V = _comparable_version
- if hasattr(os.path, 'realpath'):
- # Python 2.2 introduced os.path.realpath(); it is used
- # here to work around problems with Cygwin not being
- # able to open symlinks for reading
- executable = os.path.realpath(executable)
+ # We use os.path.realpath()
+ # here to work around problems with Cygwin not being
+ # able to open symlinks for reading
+ executable = os.path.realpath(executable)
with open(executable, 'rb') as f:
binary = f.read(chunksize)
pos = 0