jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/363366 )

Change subject: [IMPR] Prevent deprecation warning in test when using 
PatchManager
......................................................................


[IMPR] Prevent deprecation warning in test when using PatchManager

Bug: T169768
Change-Id: Icf8f94bfd2311986ab778da34caa5b2ed5ff7155
---
M pywikibot/diff.py
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/pywikibot/diff.py b/pywikibot/diff.py
index 12fe490..c5b95f4 100644
--- a/pywikibot/diff.py
+++ b/pywikibot/diff.py
@@ -573,7 +573,7 @@
     """
     FORMAT = '{2}{lightpurple}{0:{1}^50}{default}{2}'
 
-    patch = PatchManager(oldtext, newtext, n=n, by_letter=by_letter)
+    patch = PatchManager(oldtext, newtext, context=n, by_letter=by_letter)
     pywikibot.output(color_format(FORMAT, '  ALL CHANGES  ', '*', '\n'))
 
     for hunk in patch.hunks:

-- 
To view, visit https://gerrit.wikimedia.org/r/363366
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icf8f94bfd2311986ab778da34caa5b2ed5ff7155
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Magul <[email protected]>
Gerrit-Reviewer: Mpaa <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to