Remove traces of rfc822.

This commit is contained in:
Georg Brandl 2008-06-12 22:23:59 +00:00
parent a0c0a4a261
commit 9f0f960d4c
6 changed files with 12 additions and 11 deletions

View file

@ -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: