summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-06-02 16:38:14 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-06-02 16:38:14 (GMT)
commit1fab9ee085755ed2f7abcf28794d7c20bd51a97a (patch)
treec410e3197d9af3e6b4d29d9ec95e8f118479701e /Lib
parent1ccccc08c2913b04fe9563b283dd1339d079a9bd (diff)
downloadcpython-1fab9ee085755ed2f7abcf28794d7c20bd51a97a.zip
cpython-1fab9ee085755ed2f7abcf28794d7c20bd51a97a.tar.gz
cpython-1fab9ee085755ed2f7abcf28794d7c20bd51a97a.tar.bz2
Get email test to pass. Barry, hope this is what you had in mind
Diffstat (limited to 'Lib')
-rw-r--r--Lib/email/_compat21.py6
-rw-r--r--Lib/email/_compat22.py6
2 files changed, 6 insertions, 6 deletions
diff --git a/Lib/email/_compat21.py b/Lib/email/_compat21.py
index 932de48..478d276 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 d505c96..c88007c 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