Skip to content

Commit e393583

Browse files
committed
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
1 parent e718272 commit e393583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ietf/utils/draft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def dotexp(s):
706706

707707
last_line = len(self.lines)-1
708708
address_section_pos = last_line/2
709-
for i in range(last_line/2,last_line):
709+
for i in range(last_line//2,last_line):
710710
line = self.lines[i]
711711
if re.search(address_section, line):
712712
address_section_pos = i

0 commit comments

Comments
 (0)