summaryrefslogtreecommitdiffstats
path: root/Lib/platform.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-31 21:54:24 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-31 21:54:24 (GMT)
commit62e2ca219311a111873892910ad441659faeaefa (patch)
tree74b217909164562274942fe2688f8fbc41c81fd6 /Lib/platform.py
parent78aa3964156c97329ca514d1f38bd3fbc2eda8db (diff)
downloadcpython-62e2ca219311a111873892910ad441659faeaefa.zip
cpython-62e2ca219311a111873892910ad441659faeaefa.tar.gz
cpython-62e2ca219311a111873892910ad441659faeaefa.tar.bz2
#8292: Fix three instances of truth tests on return values of filter() (which is always true in Python 3).
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-xLib/platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py
index 75f92af..f856a43 100755
--- a/Lib/platform.py
+++ b/Lib/platform.py
@@ -1137,7 +1137,7 @@ def uname():
except AttributeError:
no_os_uname = 1
- if no_os_uname or not filter(None, (system, node, release, version, machine)):
+ if no_os_uname or not list(filter(None, (system, node, release, version, machine))):
# Hmm, no there is either no uname or uname has returned
#'unknowns'... we'll have to poke around the system then.
if no_os_uname: