projects
/
osm
/
common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support for mongodb replicaset connection (HA).
[osm/common.git]
/
osm_common
/
msglocal.py
diff --git
a/osm_common/msglocal.py
b/osm_common/msglocal.py
index
965cb26
..
843b376
100644
(file)
--- a/
osm_common/msglocal.py
+++ b/
osm_common/msglocal.py
@@
-112,7
+112,7
@@
class MsgLocal(MsgBase):
self.buffer[single_topic] += self.files_read[single_topic].readline()
if not self.buffer[single_topic].endswith("\n"):
continue
self.buffer[single_topic] += self.files_read[single_topic].readline()
if not self.buffer[single_topic].endswith("\n"):
continue
- msg_dict = yaml.load(self.buffer[single_topic])
+ msg_dict = yaml.
safe_
load(self.buffer[single_topic])
self.buffer[single_topic] = ""
assert len(msg_dict) == 1
for k, v in msg_dict.items():
self.buffer[single_topic] = ""
assert len(msg_dict) == 1
for k, v in msg_dict.items():