jenkins-bot has submitted this change and it was merged.
Change subject: remove obsolete sys import, ......................................................................
remove obsolete sys import,
pep8 changes synchronized with compat
Change-Id: I74984ae0194592262296409c62a0378619fb487c --- M scripts/upload.py 1 file changed, 5 insertions(+), 5 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/upload.py b/scripts/upload.py index f21e6e1..f3aefe4 100755 --- a/scripts/upload.py +++ b/scripts/upload.py @@ -28,7 +28,6 @@ #
import os -import sys import time import urllib import urlparse @@ -43,9 +42,9 @@ verifyDescription=True, ignoreWarning=False, targetSite=None, uploadByUrl=False): """ - ignoreWarning - Set this to True if you want to upload even if another - file would be overwritten or another mistake would be - risked. + @param ignoreWarning: Set this to True if you want to upload even if + another file would be overwritten or another mistake would be + risked.
""" self.url = url @@ -56,7 +55,8 @@ self.verifyDescription = verifyDescription self.ignoreWarning = ignoreWarning if config.upload_to_commons: - self.targetSite = targetSite or pywikibot.Site('commons', 'commons') + self.targetSite = targetSite or pywikibot.Site('commons', + 'commons') else: self.targetSite = targetSite or pywikibot.Site() self.targetSite.forceLogin()
pywikibot-commits@lists.wikimedia.org