diff options
author | Brian Dolbec <brian.dolbec@gmail.com> | 2011-03-27 19:52:48 -0700 |
---|---|---|
committer | Brian Dolbec <brian.dolbec@gmail.com> | 2011-03-27 19:52:48 -0700 |
commit | 97c96c8f6d616889bf9dcc423f27675c11af4af8 (patch) | |
tree | 47788264a75eb76b496d835809394c821fb2787c /layman/utils.py | |
parent | 58530ac4e610f8eb9952ba8ee7ca920d400915db (diff) | |
download | layman-97c96c8f6d616889bf9dcc423f27675c11af4af8.tar.gz layman-97c96c8f6d616889bf9dcc423f27675c11af4af8.tar.bz2 layman-97c96c8f6d616889bf9dcc423f27675c11af4af8.zip |
migrate to using explicit checks.
Diffstat (limited to 'layman/utils.py')
-rw-r--r-- | layman/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layman/utils.py b/layman/utils.py index 03ddb45..e38ea7c 100644 --- a/layman/utils.py +++ b/layman/utils.py @@ -50,7 +50,7 @@ def decode_selection(selection): # fix None passed in, return an empty list selection = selection or [] enc = sys.getfilesystemencoding() - if enc: + if enc is not None: return [i.decode(enc) for i in selection] return selection |