summaryrefslogtreecommitdiffstats
path: root/layman/utils.py
diff options
context:
space:
mode:
authorBrian Dolbec <brian.dolbec@gmail.com>2011-01-16 22:56:06 -0800
committerBrian Dolbec <brian.dolbec@gmail.com>2011-02-12 19:39:35 -0800
commitcf439af88990de7f7e0ef68faca1581e0480a458 (patch)
tree2b716d5831f47ffaff346bceb5fecdc055e67eb4 /layman/utils.py
parentc551ad652c54eaccc974c1bb87e8c7582adacbae (diff)
downloadlayman-cf439af88990de7f7e0ef68faca1581e0480a458.tar.gz
layman-cf439af88990de7f7e0ef68faca1581e0480a458.tar.bz2
layman-cf439af88990de7f7e0ef68faca1581e0480a458.zip
overhaul the api, add several functions, delay loading of the db's, etc
Diffstat (limited to 'layman/utils.py')
-rw-r--r--layman/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/layman/utils.py b/layman/utils.py
index 79b3c18..67a0ab7 100644
--- a/layman/utils.py
+++ b/layman/utils.py
@@ -47,6 +47,8 @@ def decode_selection(selection):
'''utility function to decode a list of strings
accoring to the filesystem encoding
'''
+ # fix None passed in, return an empty list
+ selection = selection or []
enc = sys.getfilesystemencoding()
if enc:
return [i.decode(enc) for i in selection]