mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 10:46:11 +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')
|
||||
for i in fp.read().split('\n'):
|
||||
try:
|
||||
(key,value) = i.split('=')
|
||||
(key,value) = i.split('=',1)
|
||||
if msg.has_key(key) == False:
|
||||
msg[key]=[]
|
||||
msg[key].append(value)
|
||||
msg[key].append(value)
|
||||
except ValueError,e:
|
||||
pass
|
||||
fp.close()
|
||||
|
|
Loading…
Reference in a new issue