jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/375376 )
Change subject: harvest_template.py: Do not use `list.clear` which is python 3 only ......................................................................
harvest_template.py: Do not use `list.clear` which is python 3 only
Bug: T174785 Change-Id: Ia4270361e5e53742bc4472493a82b95e7a757aa1 --- M scripts/harvest_template.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Strainu: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/harvest_template.py b/scripts/harvest_template.py index 81fd492..7303524 100755 --- a/scripts/harvest_template.py +++ b/scripts/harvest_template.py @@ -353,7 +353,7 @@ if complete: handler = PropertyOptionHandler(**current_args[2]) fields[current_args[0]] = (current_args[1], handler) - current_args.clear() + del current_args[:] else: current_args.append(arg) if len(current_args) == 2:
pywikibot-commits@lists.wikimedia.org