mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
Fixed message parser library
This commit is contained in:
parent
1144fdee80
commit
ddf2ede927
1 changed files with 2 additions and 2 deletions
|
@ -16,10 +16,10 @@ class AHAActions:
|
||||||
fp = open(filename,'r')
|
fp = open(filename,'r')
|
||||||
for i in fp.read().split('\n'):
|
for i in fp.read().split('\n'):
|
||||||
try:
|
try:
|
||||||
(key,value) = i.split('=')
|
(key,value) = i.split('=',1)
|
||||||
if msg.has_key(key) == False:
|
if msg.has_key(key) == False:
|
||||||
msg[key]=[]
|
msg[key]=[]
|
||||||
msg[key].append(value)
|
msg[key].append(value)
|
||||||
except ValueError,e:
|
except ValueError,e:
|
||||||
pass
|
pass
|
||||||
fp.close()
|
fp.close()
|
||||||
|
|
Loading…
Reference in a new issue