Xqt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/231601
Change subject: {PEP8] Reduce lines beneath 100 characters
......................................................................
{PEP8] Reduce lines beneath 100 characters
Change-Id: Ibe63d770b9e9b8d0ff46f11a1a54e84a88ce194d
---
M tests/api_tests.py
M tests/site_detect_tests.py
2 files changed, 5 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/01/231601/1
diff --git a/tests/api_tests.py b/tests/api_tests.py
index 213cf3b..e86eee8 100644
--- a/tests/api_tests.py
+++ b/tests/api_tests.py
@@ -59,7 +59,9 @@
# to verify that we actually test the right request
parameters = [p.split(b'=', 1) for p in parameters.split(b'&')]
parameters = dict(
- (param.decode('ascii'),
set(unquote_to_bytes(value).decode(kwargs['site'].encoding()).replace('+', '
').split('|')))
+ (param.decode('ascii'),
+ set(unquote_to_bytes(value).decode(
+ kwargs['site'].encoding()).replace('+', ' ').split('|')))
for param, value in parameters)
if 'fake' not in parameters:
return False # do an actual request
diff --git a/tests/site_detect_tests.py b/tests/site_detect_tests.py
index d1a4bf5..2641fde 100644
--- a/tests/site_detect_tests.py
+++ b/tests/site_detect_tests.py
@@ -54,8 +54,8 @@
super(TestWikiSiteDetection, self).tearDown()
print('Out of %d sites, %d tests passed, %d tests failed '
'and %d tests raised an error'
- % (len(self.all), len(self.passes), len(self.failures),
len(self.errors)
- )
+ % (len(self.all), len(self.passes), len(self.failures),
+ len(self.errors))
)
PREFIXES = ['PASS', 'ERR ', 'FAIL', 'MISS']
--
To view, visit https://gerrit.wikimedia.org/r/231601
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibe63d770b9e9b8d0ff46f11a1a54e84a88ce194d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits