diff options
| author | Michael Vogt <egon@top> | 2005-11-29 18:06:20 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@top> | 2005-11-29 18:06:20 +0100 |
| commit | 33cf8b013e776c5c1249c2b91c8cf1e34ef739a4 (patch) | |
| tree | 545d4d5cf2b2ae1b7a44a97501401b40b821855c /UpdateManager/Common/utils.py | |
| parent | a79e4fc80ef854844e560e5b547d1398ab149360 (diff) | |
| download | python-apt-33cf8b013e776c5c1249c2b91c8cf1e34ef739a4.tar.gz | |
* code cleanup, make it all more structured
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') |
