jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/462281 )
Change subject: [cleanup] cleanup scripts/upload.py ......................................................................
[cleanup] cleanup scripts/upload.py
- removing preleading "u" from strings - use single quotes for string literals
Change-Id: Ia3ca4f2e60eca45ce54b9c412fc39f88848e3105 --- M scripts/upload.py 1 file changed, 4 insertions(+), 4 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/upload.py b/scripts/upload.py index c9a44c1..16cb277 100755 --- a/scripts/upload.py +++ b/scripts/upload.py @@ -102,7 +102,7 @@ @param args: command line arguments @type args: unicode """ - url = u'' + url = '' description = [] summary = None keep_filename = False @@ -171,7 +171,7 @@ encoding=pywikibot.config.textfile_encoding) as f: description = f.read().replace('\r\n', '\n')
- while not ("://" in url or os.path.exists(url)): + while not ('://' in url or os.path.exists(url)): if not url: error = 'No input filename given.' else: @@ -183,7 +183,7 @@ break else: pywikibot.output(error) - url = pywikibot.input(u'URL, file or directory where files are now:') + url = pywikibot.input('URL, file or directory where files are now:')
if always and ((aborts is not True and ignorewarn is not True) or not description or url is None): @@ -222,5 +222,5 @@ bot.run()
-if __name__ == "__main__": +if __name__ == '__main__': main()