diff --git a/setup.cfg b/setup.cfg index a3fb0ad..a8b1f7e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,7 +3,7 @@ universal = 1 [flake8] ignore = - E114,E116,E121,E122,E123,E124,E125,E126,E127,E128,E131, + E116,E121,E122,E123,E124,E125,E126,E127,E128,E131, E201,E202,E203,E211,E221,E222,E225,E226,E228,E241,E251,E231, E261,E262,E265,E266,E271, E301,E302,E303,E305, diff --git a/xlwt/BIFFRecords.py b/xlwt/BIFFRecords.py index 869f7a9..048572e 100644 --- a/xlwt/BIFFRecords.py +++ b/xlwt/BIFFRecords.py @@ -97,13 +97,16 @@ def _add_to_sst(self, s): is_unicode_str = u_str[2] == b'\x01'[0] if is_unicode_str: - atom_len = 5 # 2 byte -- len, - # 1 byte -- options, - # 2 byte -- 1st sym + # 2 byte -- len + # 1 byte -- options + # 2 byte -- 1st sym + atom_len = 5 else: - atom_len = 4 # 2 byte -- len, - # 1 byte -- options, - # 1 byte -- 1st sym + # 2 byte -- len + # 1 byte -- options + # 1 byte -- 1st sym + atom_len = 4 + self._save_atom(u_str[0:atom_len]) self._save_splitted(u_str[atom_len:], is_unicode_str) @@ -112,15 +115,17 @@ def _add_rt_to_sst(self, rt): rt_str, rt_fr = upack2rt(rt, self.encoding) is_unicode_str = rt_str[2] == b'\x09'[0] if is_unicode_str: - atom_len = 7 # 2 byte -- len, - # 1 byte -- options, - # 2 byte -- number of rt runs - # 2 byte -- 1st sym + # 2 byte -- len + # 1 byte -- options + # 2 byte -- number of rt runs + # 2 byte -- 1st sym + atom_len = 7 else: - atom_len = 6 # 2 byte -- len, - # 1 byte -- options, - # 2 byte -- number of rt runs - # 1 byte -- 1st sym + # 2 byte -- len, + # 1 byte -- options, + # 2 byte -- number of rt runs + # 1 byte -- 1st sym + atom_len = 6 self._save_atom(rt_str[0:atom_len]) self._save_splitted(rt_str[atom_len:], is_unicode_str) for i in range(0, len(rt_fr), 4): diff --git a/xlwt/ExcelFormulaParser.py b/xlwt/ExcelFormulaParser.py index c776ca6..85502c7 100644 --- a/xlwt/ExcelFormulaParser.py +++ b/xlwt/ExcelFormulaParser.py @@ -167,7 +167,6 @@ def prec1_expr(self, self.prec2_expr(arg_type) self.rpn += op; - # print "**prec1_expr4 %s" % arg_type else: break