jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323991?usp=email )

Change subject: tracking_param_remover: Return URL directly
......................................................................

tracking_param_remover: Return URL directly

Remove the temporary variable used only by the return statement.

Change-Id: I01c6b271ffdb472b1a2bcb4612ecefc03b7ac47c
---
M scripts/tracking_param_remover.py
1 file changed, 1 insertion(+), 4 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/scripts/tracking_param_remover.py 
b/scripts/tracking_param_remover.py
index a6c0d2e..8f1cd33 100755
--- a/scripts/tracking_param_remover.py
+++ b/scripts/tracking_param_remover.py
@@ -88,10 +88,7 @@
             return urllib.parse.urlunparse(url)

         new_query = urllib.parse.urlencode(filtered_params)
-
-        new_url = urllib.parse.urlunparse(url._replace(query=new_query))
-
-        return new_url
+        return urllib.parse.urlunparse(url._replace(query=new_query))

     def treat_page(self) -> None:
         """Treat a page."""

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1323991?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I01c6b271ffdb472b1a2bcb4612ecefc03b7ac47c
Gerrit-Change-Number: 1323991
Gerrit-PatchSet: 1
Gerrit-Owner: Mahveotm <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to