mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
#8292: Fix three instances of truth tests on return values of filter() (which is always true in Python 3).
This commit is contained in:
parent
78aa396415
commit
62e2ca2193
3 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue