summaryrefslogtreecommitdiff
path: root/UpdateManager/Common
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-11-29 18:06:20 +0100
committerMichael Vogt <egon@top>2005-11-29 18:06:20 +0100
commit33cf8b013e776c5c1249c2b91c8cf1e34ef739a4 (patch)
tree545d4d5cf2b2ae1b7a44a97501401b40b821855c /UpdateManager/Common
parenta79e4fc80ef854844e560e5b547d1398ab149360 (diff)
downloadpython-apt-33cf8b013e776c5c1249c2b91c8cf1e34ef739a4.tar.gz
* code cleanup, make it all more structured
Diffstat (limited to 'UpdateManager/Common')
-rw-r--r--UpdateManager/Common/__init__.py3
-rw-r--r--UpdateManager/Common/utils.py8
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')