Add update_header method

pull/52/head
tuxxy 2017-09-14 12:30:48 -07:00
parent 3ac60f35cd
commit df2908817e
1 changed files with 8 additions and 0 deletions

View File

@ -56,3 +56,11 @@ class Header(object):
f.write(msgpack.dumps(self.header))
except ValueError as e:
raise e
def update_header(self, header={}):
"""
Updates the self.header dict with the dict in header.
:param dict header: Values to use in the dict.update call
"""
self.header.update(header)