projects
/
htsworkflow.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9246468fc9cf8c49d142eb905851c9517742e8da
[htsworkflow.git]
/
htsworkflow
/
util
/
conversion.py
1
"""
2
Miscellaneous, more refined type casting functions
3
"""
4
5
def unicode_or_none(value):
6
"""
7
Convert value to unicode if its not none.
8
"""
9
if value is None:
10
return None
11
else:
12
return unicode(value)