diff --git a/Lib/email/_compat21.py b/Lib/email/_compat21.py index 932de484e37..478d2768cf8 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 d505c964365..c88007cb4c7 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