jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[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(-)

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()

To view, visit change 462281. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia3ca4f2e60eca45ce54b9c412fc39f88848e3105
Gerrit-Change-Number: 462281
Gerrit-PatchSet: 1
Gerrit-Owner: D3r1ck01 <alangiderick@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)