From: Barry Warsaw Date: Sun, 2 Jun 2002 18:59:06 +0000 (+0000) Subject: _intdiv2() -> _floordiv(), merge of uncommitted changes. X-Git-Tag: v2.3c1~5511 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff49279f7caeedf1ade2ea522badf0d60aa038e5;p=thirdparty%2FPython%2Fcpython.git _intdiv2() -> _floordiv(), merge of uncommitted changes. --- diff --git a/Lib/email/_compat21.py b/Lib/email/_compat21.py index 478d2768cf80..76d6f502bc23 100644 --- a/Lib/email/_compat21.py +++ b/Lib/email/_compat21.py @@ -24,10 +24,10 @@ def walk(self): return parts -# Used internally by the Header class -def _floordiv(x, y): - """Do integer division.""" - return x / y +# Python 2.2 spells floor division // +def _floordiv(i, j): + """Do a floor division, i/j.""" + return i / j diff --git a/Lib/email/_compat22.py b/Lib/email/_compat22.py index c88007cb4c71..258156805bff 100644 --- a/Lib/email/_compat22.py +++ b/Lib/email/_compat22.py @@ -25,10 +25,10 @@ def walk(self): yield subsubpart -# Used internally by the Header class -def _floordiv(x, y): - """Do integer division.""" - return x // y +# Python 2.2 spells floor division // +def _floordiv(i, j): + """Do a floor division, i/j.""" + return i // j