summaryrefslogtreecommitdiffstats
path: root/Tools/versioncheck
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-06-12 22:23:59 (GMT)
committerGeorg Brandl <georg@python.org>2008-06-12 22:23:59 (GMT)
commit9f0f960d4ce48062dcb286903721fa89d6037159 (patch)
tree4640c5dd2f0ffc54affa131fe6b48cb70d480b71 /Tools/versioncheck
parenta0c0a4a2616e83084052a34c9806b3308f5799db (diff)
downloadcpython-9f0f960d4ce48062dcb286903721fa89d6037159.zip
cpython-9f0f960d4ce48062dcb286903721fa89d6037159.tar.gz
cpython-9f0f960d4ce48062dcb286903721fa89d6037159.tar.bz2
Remove traces of rfc822.
Diffstat (limited to 'Tools/versioncheck')
-rw-r--r--Tools/versioncheck/pyversioncheck.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/versioncheck/pyversioncheck.py b/Tools/versioncheck/pyversioncheck.py
index 8826555..e5983fd 100644
--- a/Tools/versioncheck/pyversioncheck.py
+++ b/Tools/versioncheck/pyversioncheck.py
@@ -1,6 +1,6 @@
"""pyversioncheck - Module to help with checking versions"""
-import rfc822
import urllib
+import email
import sys
# Verbose options
@@ -52,7 +52,7 @@ def _check1version(package, url, version, verbose=0):
if verbose >= VERBOSE_EACHFILE:
print(' Cannot open:', arg)
return -1, None, None
- msg = rfc822.Message(fp, seekable=0)
+ msg = email.message_from_file(fp)
newversion = msg.get('current-version')
if not newversion:
if verbose >= VERBOSE_EACHFILE: