From: Neal Norwitz Date: Sun, 2 Jun 2002 16:38:14 +0000 (+0000) Subject: Get email test to pass. Barry, hope this is what you had in mind X-Git-Tag: v2.3c1~5513 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fab9ee085755ed2f7abcf28794d7c20bd51a97a;p=python Get email test to pass. Barry, hope this is what you had in mind --- diff --git a/Lib/email/_compat21.py b/Lib/email/_compat21.py index 932de484e3..478d2768cf 100644 --- a/Lib/email/_compat21.py +++ b/Lib/email/_compat21.py @@ -25,9 +25,9 @@ def walk(self): # Used internally by the Header class -def _intdiv2(i): - """Do an integer divide by 2.""" - return i / 2 +def _floordiv(x, y): + """Do integer division.""" + return x / y diff --git a/Lib/email/_compat22.py b/Lib/email/_compat22.py index d505c96436..c88007cb4c 100644 --- a/Lib/email/_compat22.py +++ b/Lib/email/_compat22.py @@ -26,9 +26,9 @@ def walk(self): # Used internally by the Header class -def _intdiv2(i): - """Do an integer divide by 2.""" - return i // 2 +def _floordiv(x, y): + """Do integer division.""" + return x // y