Index: Lib/platform.py =================================================================== --- Lib/platform.py (révision 83968) +++ Lib/platform.py (copie de travail) @@ -990,9 +990,8 @@ """ Interface to the system's file command. The function uses the -b option of the file command to have it - ommit the filename in its output and if possible the -L option - to have the command follow symlinks. It returns default in - case the command should fail. + ommit the filename in its output. Follow the symlinks. It returns + default in case the command should fail. """ if sys.platform in ('dos','win32','win16','os2'): @@ -1000,7 +999,7 @@ return default target = _follow_symlinks(target).replace('"', '\\"') try: - f = os.popen('file "%s" 2> %s' % (target, DEV_NULL)) + f = os.popen('file -b "%s" 2> %s' % (target, DEV_NULL)) except (AttributeError,os.error): return default output = f.read().strip()