commit | d15fad7a89d12afb8e0602c975909237865650c8 | [log] [tgz] |
---|---|---|
author | Marc-André Lemburg <mal@egenix.com> | Tue Sep 02 10:32:34 2008 +0000 |
committer | Marc-André Lemburg <mal@egenix.com> | Tue Sep 02 10:32:34 2008 +0000 |
tree | db6d4af24fc252cffc19c1a7c3cdd56f94d6c2f5 | |
parent | 91ae3ea2b46a6e61a2112ffc0d53941a39e121ff [diff] [blame] |
Add quotes around the file name to avoid issues with spaces. Closes #3719.
diff --git a/Lib/platform.py b/Lib/platform.py index 73b6fdb..cc0431b 100755 --- a/Lib/platform.py +++ b/Lib/platform.py
@@ -969,7 +969,7 @@ return default target = _follow_symlinks(target) try: - f = os.popen('file %s 2> /dev/null' % target) + f = os.popen('file "%s" 2> /dev/null' % target) except (AttributeError,os.error): return default output = string.strip(f.read())