Merlijn van Deen has uploaded a new change for review. https://gerrit.wikimedia.org/r/117691
Change subject: pep8 fixes ...................................................................... pep8 fixes adminlog.py: fix indentation to be pure tabs adminlogbot.py: add blank line config.py: add # noqa markers -- a tab is seen as 8 spaces, or two indents, so a tab indentation for a dict is seen as 'too much indentation'. I think it makes more sense to ignore this message than to switch to spaces for these few lines. Change-Id: Ib3e077472b4f270274545bb64821b266bc794e60 --- M adminlog.py M adminlogbot.py M config.py 3 files changed, 7 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/debs/adminbot refs/changes/91/117691/1 diff --git a/adminlog.py b/adminlog.py index 8196d6d..240c778 100644 --- a/adminlog.py +++ b/adminlog.py @@ -22,8 +22,8 @@ pagename = config.wiki_page page = site.Pages[pagename] - if page.redirect: - page = next(p.links()) + if page.redirect: + page = next(p.links()) text = page.edit() lines = text.split('\n') diff --git a/adminlogbot.py b/adminlogbot.py index dfa46b1..884cf66 100755 --- a/adminlogbot.py +++ b/adminlogbot.py @@ -18,6 +18,7 @@ LOG_FORMAT = "%(asctime)-15s %(levelname)s: %(message)s" + class logbot(ircbot.SingleServerIRCBot): def __init__(self, name, config): self.config = config diff --git a/config.py b/config.py index ca3369b..c08b016 100644 --- a/config.py +++ b/config.py @@ -19,10 +19,10 @@ # application's settings'. Finally, go back to the 'Details' tab and click # 'Create my access token'. twitter_api_params = { - 'access_token_key': 'NNNNNNNNNN-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', - 'access_token_secret': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', - 'consumer_key': 'XXXXXXXXXXXXXXXXXXXXX', - 'consumer_secret': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', + 'access_token_key': 'NNNNNNNNNN-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', # noqa + 'access_token_secret': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', # noqa + 'consumer_key': 'XXXXXXXXXXXXXXXXXXXXX', # noqa + 'consumer_secret': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', # noqa } # Channels to join -- To view, visit https://gerrit.wikimedia.org/r/117691 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ib3e077472b4f270274545bb64821b266bc794e60 Gerrit-PatchSet: 1 Gerrit-Project: operations/debs/adminbot Gerrit-Branch: master Gerrit-Owner: Merlijn van Deen <valhall...@arctus.nl> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits