Merge pull request #1 from Gerrrr/master

Representation of manager.ManagerMsg was fixed.
develop
Randall Degges 2012-08-26 14:19:31 -07:00
commit 6728264a24
1 changed files with 5 additions and 1 deletions

View File

@ -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):