chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disorder.py:
[disorder]
/
python
/
disorder.py.in
diff --git
a/python/disorder.py.in
b/python/disorder.py.in
index a8afcba9401dfaef6995eeb0755b56edac62808e..95854383f6768912530fa5280f50d3992973994c 100644
(file)
--- a/
python/disorder.py.in
+++ b/
python/disorder.py.in
@@
-231,7
+231,7
@@
def _list2dict(l):
while True:
k = i.next()
v = i.next()
while True:
k = i.next()
v = i.next()
- d[
k
] = v
+ d[
str(k)
] = v
except StopIteration:
pass
return d
except StopIteration:
pass
return d
@@
-294,7
+294,8
@@
class client:
home = pw.pw_dir
privconf = _configfile + "." + pw.pw_name
passfile = home + os.sep + ".disorder" + os.sep + "passwd"
home = pw.pw_dir
privconf = _configfile + "." + pw.pw_name
passfile = home + os.sep + ".disorder" + os.sep + "passwd"
- self._readfile(_configfile)
+ if os.path.exists(_configfile):
+ self._readfile(_configfile)
if os.path.exists(privconf):
self._readfile(privconf)
if os.path.exists(passfile) and _userconf:
if os.path.exists(privconf):
self._readfile(privconf)
if os.path.exists(passfile) and _userconf: