representation of managermsg was fixed
parent
ed2be0e297
commit
caf94ddb59
|
@ -124,8 +124,12 @@ class ManagerMsg(object):
|
|||
def __getitem__(self, hname):
|
||||
"""Return the specfied header"""
|
||||
return self.headers[hname]
|
||||
|
||||
def __repr__(self):
|
||||
if 'Response' in self.headers:
|
||||
return self.headers['Response']
|
||||
else:
|
||||
return self.headers['Event']
|
||||
|
||||
|
||||
class Event(object):
|
||||
|
|
Loading…
Reference in New Issue