summaryrefslogtreecommitdiffstats
path: root/Lib/email/_parseaddr.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2004-05-09 03:55:11 (GMT)
committerBarry Warsaw <barry@python.org>2004-05-09 03:55:11 (GMT)
commit24f79762a10bdadcf8383e5a94acf5346810d4d5 (patch)
tree2cefd9ed86b17e1bd4f3eaeecbfabbeb4f591acb /Lib/email/_parseaddr.py
parent235c8eba62f1ecfb5beb1be0f692de3a07ef4ab1 (diff)
downloadcpython-24f79762a10bdadcf8383e5a94acf5346810d4d5.zip
cpython-24f79762a10bdadcf8383e5a94acf5346810d4d5.tar.gz
cpython-24f79762a10bdadcf8383e5a94acf5346810d4d5.tar.bz2
Update to Python 2.3, getting rid of backward compatiblity crud.
Diffstat (limited to 'Lib/email/_parseaddr.py')
-rw-r--r--Lib/email/_parseaddr.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py
index 5cb75e6..167eb3f 100644
--- a/Lib/email/_parseaddr.py
+++ b/Lib/email/_parseaddr.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2002 Python Software Foundation
+# Copyright (C) 2002-2004 Python Software Foundation
"""Email address parsing code.
@@ -6,13 +6,6 @@ Lifted directly from rfc822.py. This should eventually be rewritten.
"""
import time
-from types import TupleType
-
-try:
- True, False
-except NameError:
- True = 1
- False = 0
SPACE = ' '
EMPTYSTRING = ''
@@ -130,7 +123,7 @@ def parsedate_tz(data):
def parsedate(data):
"""Convert a time string to a time tuple."""
t = parsedate_tz(data)
- if isinstance(t, TupleType):
+ if isinstance(t, tuple):
return t[:9]
else:
return t