jenkins-bot has submitted this change and it was merged.
Change subject: remove obsolete md5 import. ......................................................................
remove obsolete md5 import.
md5 is deprecated since 2.5 and we need py version 2.6.5 or higher for core. On the other hand md5 isn't use at site.py. I removed it and opened bug 65760 to fix if needed.
Change-Id: Ifdc0e07f90c842f33139fb45875d1a07ce8240cf --- M pywikibot/site.py 1 file changed, 0 insertions(+), 8 deletions(-)
Approvals: John Vandenberg: Looks good to me, but someone else must approve Legoktm: Looks good to me, but someone else must approve Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index 9599d4c..e62e08c 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -11,10 +11,6 @@ __version__ = '$Id$' #
-try: - from hashlib import md5 -except ImportError: - from md5 import md5 import datetime import imp import itertools @@ -2740,10 +2736,6 @@ pywikibot.warning( u"editpage: Invalid watch value '%(watch)s' ignored." % locals()) -# FIXME: API gives 'badmd5' error -# md5hash = md5() -# md5hash.update(urllib.quote_plus(text.encode(self.encoding()))) -# params['md5'] = md5hash.digest() req = api.Request(site=self, **params) while True: try:
pywikibot-commits@lists.wikimedia.org