Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fab9ee

Browse files
committed
Get email test to pass. Barry, hope this is what you had in mind
1 parent 1ccccc0 commit 1fab9ee

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Lib/email/_compat21.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def walk(self):
2525

2626

2727
# Used internally by the Header class
28-
def _intdiv2(i):
29-
"""Do an integer divide by 2."""
30-
return i / 2
28+
def _floordiv(x, y):
29+
"""Do integer division."""
30+
return x / y
3131

3232

3333

Lib/email/_compat22.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def walk(self):
2626

2727

2828
# Used internally by the Header class
29-
def _intdiv2(i):
30-
"""Do an integer divide by 2."""
31-
return i // 2
29+
def _floordiv(x, y):
30+
"""Do integer division."""
31+
return x // y
3232

3333

3434

0 commit comments

Comments
 (0)