Applied a patch from dkg@fifthhorseman.net: py3 compatibility: Use // for explicit integer division
Without this fix, in modern versions of python, the changed line produces: TypeError: 'float' object cannot be interpreted as an integer - Legacy-Id: 15891
This commit is contained in:
parent
e718272e71
commit
e39358312b
|
@ -706,7 +706,7 @@ class Draft():
|
|||
|
||||
last_line = len(self.lines)-1
|
||||
address_section_pos = last_line/2
|
||||
for i in range(last_line/2,last_line):
|
||||
for i in range(last_line//2,last_line):
|
||||
line = self.lines[i]
|
||||
if re.search(address_section, line):
|
||||
address_section_pos = i
|
||||
|
|
Loading…
Reference in a new issue