Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Commit

Permalink
Fix flake8 warning "E114 indentation is not a multiple of four (comme…
Browse files Browse the repository at this point in the history
…nt)"
  • Loading branch information
jdufresne committed Feb 7, 2018
1 parent f7d96cd commit 81162fe
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
33 changes: 19 additions & 14 deletions xlwt/BIFFRecords.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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):
Expand Down
1 change: 0 additions & 1 deletion xlwt/ExcelFormulaParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ def prec1_expr(self,

self.prec2_expr(arg_type)
self.rpn += op;
# print "**prec1_expr4 %s" % arg_type
else:
break

Expand Down

0 comments on commit 81162fe

Please sign in to comment.