diff options
Diffstat (limited to 'UpdateManager/Common/utils.py')
| -rw-r--r-- | UpdateManager/Common/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/UpdateManager/Common/utils.py b/UpdateManager/Common/utils.py new file mode 100644 index 00000000..92fe16b0 --- /dev/null +++ b/UpdateManager/Common/utils.py @@ -0,0 +1,8 @@ + +def str_to_bool(str): + if str == "0" or str.upper() == "FALSE": + return False + return True + +def utf8(str): + return unicode(str, 'latin1').encode('utf-8') |
