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 | |
| parent | a79e4fc80ef854844e560e5b547d1398ab149360 (diff) | |
| download | python-apt-33cf8b013e776c5c1249c2b91c8cf1e34ef739a4.tar.gz | |
* code cleanup, make it all more structured
Diffstat (limited to 'UpdateManager/Common')
| -rw-r--r-- | UpdateManager/Common/__init__.py | 3 | ||||
| -rw-r--r-- | UpdateManager/Common/utils.py | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/UpdateManager/Common/__init__.py b/UpdateManager/Common/__init__.py index 312e52dd..139597f9 100644 --- a/UpdateManager/Common/__init__.py +++ b/UpdateManager/Common/__init__.py @@ -1 +1,2 @@ -from SimpleGladeApp import SimpleGladeApp + + 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') |
