Commit c5b342d2 authored by juga  's avatar juga
Browse files

Create method to add new header attrs

parent 5003c6bc
......@@ -229,6 +229,11 @@ class V3BWHeader(object):
def num_lines(self):
return len(self.__str__().split(LINE_SEP))
def add_stats(self, **kwargs):
# Using kwargs because attributes might chage.
[setattr(self, k, str(v)) for k, v in kwargs.items()
if k in STATS_KEYVALUES]
class V3BWLine(object):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment