summaryrefslogtreecommitdiffstats
path: root/Tools/versioncheck/pyversioncheck.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/versioncheck/pyversioncheck.py')
-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: