aboutsummaryrefslogtreecommitdiffstats
path: root/share/Config.py
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-02-14 00:54:42 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-02-14 00:54:42 +0000
commit18bdd894c2026fcdc31ebd8b58fa9313ccdff476 (patch)
treeda2d72377d8eb468e56bd99248b7cf49838f84a3 /share/Config.py
parent243db9ef7ae3fc061fc841c51b8c6f20490b3df7 (diff)
downloadmsec-18bdd894c2026fcdc31ebd8b58fa9313ccdff476.tar
msec-18bdd894c2026fcdc31ebd8b58fa9313ccdff476.tar.gz
msec-18bdd894c2026fcdc31ebd8b58fa9313ccdff476.tar.bz2
msec-18bdd894c2026fcdc31ebd8b58fa9313ccdff476.tar.xz
msec-18bdd894c2026fcdc31ebd8b58fa9313ccdff476.zip
corrected warnings reported by pychecker
Diffstat (limited to 'share/Config.py')
-rw-r--r--share/Config.py24
1 files changed, 11 insertions, 13 deletions
diff --git a/share/Config.py b/share/Config.py
index ee2c10e..37a176f 100644
--- a/share/Config.py
+++ b/share/Config.py
@@ -8,8 +8,6 @@
# Purpose : configuration settings
#---------------------------------------------------------------
-import sys
-
CONFIG='/etc/security/msec2.conf'
_config={ 'root' : '',
@@ -31,16 +29,16 @@ def get_config(name, default=None):
def set_config(name, value):
_config[name] = value
-def converthexa(array):
- result=""
- for c in array:
- o=ord(c)
- d=o/16
- u=o-(d*16)
- result=result + "%x%x" % (d, u)
- return result
-
-def hashstring(str):
- return converthexa(md5.new(str).digest())
+# def converthexa(array):
+# result=""
+# for c in array:
+# o=ord(c)
+# d=int(o/16)
+# u=o-(d*16)
+# result=result + "%x%x" % (d, u)
+# return result
+#
+# def hashstring(str):
+# return converthexa(md5.new(str).digest())
# Config.py ends here