]> granicus.if.org Git - python/commit
Fix libc_ver(): libc_ver() was reading sys.executable
authorWalter Dörwald <walter@livinglogic.de>
Thu, 7 Jun 2007 19:26:24 +0000 (19:26 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 7 Jun 2007 19:26:24 +0000 (19:26 +0000)
commitc3b6ac796f160ed27d2d1094ef606514ac3ae898
treedcb518a7f161a1986fcbb2849b546a850d831bfc
parent94093ffcb68f79180c35b1c651738194a97a1bcb
Fix libc_ver(): libc_ver() was reading sys.executable
in binary mode and comparing the content to strings,
which failed. Now the bytes get decoded into unicode
using latin-1 (the comparison compares ASCII strings
only anyway, and we don't want the decoding to fail).
Lib/platform.py