From 0c7a7c383c272d7a4a9b86cb219f96567e85bde5 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 9 Apr 2012 16:34:22 -0400 Subject: [PATCH] Removed some old debugging code --- earwigbot/commands/afc_report.py | 1 - earwigbot/commands/afc_status.py | 1 - earwigbot/commands/editcount.py | 1 - earwigbot/commands/registration.py | 1 - earwigbot/commands/rights.py | 1 - earwigbot/wiki/category.py | 2 +- 6 files changed, 1 insertion(+), 6 deletions(-) diff --git a/earwigbot/commands/afc_report.py b/earwigbot/commands/afc_report.py index f44ae2b..3417f3b 100644 --- a/earwigbot/commands/afc_report.py +++ b/earwigbot/commands/afc_report.py @@ -31,7 +31,6 @@ class Command(BaseCommand): def process(self, data): self.site = self.bot.wiki.get_site() - self.site._maxlag = None self.data = data try: diff --git a/earwigbot/commands/afc_status.py b/earwigbot/commands/afc_status.py index c3952ce..dd34ec2 100644 --- a/earwigbot/commands/afc_status.py +++ b/earwigbot/commands/afc_status.py @@ -45,7 +45,6 @@ class Command(BaseCommand): def process(self, data): self.site = self.bot.wiki.get_site() - self.site._maxlag = None if data.line[1] == "JOIN": status = " ".join(("\x02Current status:\x0F", self.get_status())) diff --git a/earwigbot/commands/editcount.py b/earwigbot/commands/editcount.py index b503d8a..237d18d 100644 --- a/earwigbot/commands/editcount.py +++ b/earwigbot/commands/editcount.py @@ -42,7 +42,6 @@ class Command(BaseCommand): name = ' '.join(data.args) site = self.bot.wiki.get_site() - site._maxlag = None user = site.get_user(name) try: diff --git a/earwigbot/commands/registration.py b/earwigbot/commands/registration.py index ad42269..a36bcab 100644 --- a/earwigbot/commands/registration.py +++ b/earwigbot/commands/registration.py @@ -42,7 +42,6 @@ class Command(BaseCommand): name = ' '.join(data.args) site = self.bot.wiki.get_site() - site._maxlag = None user = site.get_user(name) try: diff --git a/earwigbot/commands/rights.py b/earwigbot/commands/rights.py index 38045a6..10c5137 100644 --- a/earwigbot/commands/rights.py +++ b/earwigbot/commands/rights.py @@ -40,7 +40,6 @@ class Command(BaseCommand): name = ' '.join(data.args) site = self.bot.wiki.get_site() - site._maxlag = None user = site.get_user(name) try: diff --git a/earwigbot/wiki/category.py b/earwigbot/wiki/category.py index aa3e0d7..9f43e7b 100644 --- a/earwigbot/wiki/category.py +++ b/earwigbot/wiki/category.py @@ -78,7 +78,7 @@ class Category(Page): if not limit: params["cmlimit"] = 50 # Default value - result = self._site._api_query(params) + result = self._site.api_query(**params) members = result['query']['categorymembers'] return [member["title"] for member in members]