Bläddra i källkod

Remove useless __all__ from commands and tasks.

tags/v0.1^2
Ben Kurtovic 12 år sedan
förälder
incheckning
844e3a5f8e
35 ändrade filer med 0 tillägg och 70 borttagningar
  1. +0
    -2
      earwigbot/commands/afc_pending.py
  2. +0
    -2
      earwigbot/commands/afc_report.py
  3. +0
    -2
      earwigbot/commands/afc_status.py
  4. +0
    -2
      earwigbot/commands/afc_submissions.py
  5. +0
    -2
      earwigbot/commands/calc.py
  6. +0
    -2
      earwigbot/commands/chanops.py
  7. +0
    -2
      earwigbot/commands/crypt.py
  8. +0
    -2
      earwigbot/commands/ctcp.py
  9. +0
    -2
      earwigbot/commands/editcount.py
  10. +0
    -2
      earwigbot/commands/geolocate.py
  11. +0
    -2
      earwigbot/commands/git.py
  12. +0
    -2
      earwigbot/commands/help.py
  13. +0
    -2
      earwigbot/commands/langcode.py
  14. +0
    -2
      earwigbot/commands/link.py
  15. +0
    -2
      earwigbot/commands/notes.py
  16. +0
    -2
      earwigbot/commands/praise.py
  17. +0
    -2
      earwigbot/commands/quit.py
  18. +0
    -2
      earwigbot/commands/registration.py
  19. +0
    -2
      earwigbot/commands/remind.py
  20. +0
    -2
      earwigbot/commands/replag.py
  21. +0
    -2
      earwigbot/commands/rights.py
  22. +0
    -2
      earwigbot/commands/test.py
  23. +0
    -2
      earwigbot/commands/threads.py
  24. +0
    -2
      earwigbot/commands/time.py
  25. +0
    -2
      earwigbot/commands/trout.py
  26. +0
    -2
      earwigbot/tasks/afc_catdelink.py
  27. +0
    -2
      earwigbot/tasks/afc_copyvios.py
  28. +0
    -2
      earwigbot/tasks/afc_dailycats.py
  29. +0
    -2
      earwigbot/tasks/afc_history.py
  30. +0
    -2
      earwigbot/tasks/afc_statistics.py
  31. +0
    -2
      earwigbot/tasks/afc_undated.py
  32. +0
    -2
      earwigbot/tasks/blp_tag.py
  33. +0
    -2
      earwigbot/tasks/image_display_resize.py
  34. +0
    -2
      earwigbot/tasks/wikiproject_tagger.py
  35. +0
    -2
      earwigbot/tasks/wrong_mime.py

+ 0
- 2
earwigbot/commands/afc_pending.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.commands import Command

__all__ = ["AFCPending"]

class AFCPending(Command):
"""Link the user to the pending AFC submissions page and category."""
name = "pending"


+ 0
- 2
earwigbot/commands/afc_report.py Visa fil

@@ -23,8 +23,6 @@
from earwigbot import wiki
from earwigbot.commands import Command

__all__ = ["AFCReport"]

class AFCReport(Command):
"""Get information about an AFC submission by name."""
name = "report"


+ 0
- 2
earwigbot/commands/afc_status.py Visa fil

@@ -24,8 +24,6 @@ import re

from earwigbot.commands import Command

__all__ = ["AFCStatus"]

class AFCStatus(Command):
"""Get the number of pending AfC submissions, open redirect requests, and
open file upload requests."""


+ 0
- 2
earwigbot/commands/afc_submissions.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.commands import Command

__all__ = ["AFCSubmissions"]

class AFCSubmissions(Command):
"""Link the user directly to some pending AFC submissions."""
name = "submissions"


+ 0
- 2
earwigbot/commands/calc.py Visa fil

@@ -25,8 +25,6 @@ import urllib

from earwigbot.commands import Command

__all__ = ["Calc"]

class Calc(Command):
"""A somewhat advanced calculator: see http://futureboy.us/fsp/frink.fsp
for details."""


+ 0
- 2
earwigbot/commands/chanops.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.commands import Command

__all__ = ["ChanOps"]

class ChanOps(Command):
"""Voice, devoice, op, or deop users in the channel, or join or part from
other channels."""


+ 0
- 2
earwigbot/commands/crypt.py Visa fil

@@ -26,8 +26,6 @@ from Crypto.Cipher import Blowfish

from earwigbot.commands import Command

__all__ = ["Crypt"]

class Crypt(Command):
"""Provides hash functions with !hash (!hash list for supported algorithms)
and Blowfish encryption with !encrypt and !decrypt."""


+ 0
- 2
earwigbot/commands/ctcp.py Visa fil

@@ -26,8 +26,6 @@ import time
from earwigbot import __version__
from earwigbot.commands import Command

__all__ = ["CTCP"]

class CTCP(Command):
"""Not an actual command; this module implements responses to the CTCP
requests PING, TIME, and VERSION."""


+ 0
- 2
earwigbot/commands/editcount.py Visa fil

@@ -25,8 +25,6 @@ from urllib import quote_plus
from earwigbot import exceptions
from earwigbot.commands import Command

__all__ = ["Editcount"]

class Editcount(Command):
"""Return a user's edit count."""
name = "editcount"


+ 0
- 2
earwigbot/commands/geolocate.py Visa fil

@@ -25,8 +25,6 @@ import urllib2

from earwigbot.commands import Command

__all__ = ["Geolocate"]

class Geolocate(Command):
"""Geolocate an IP address (via http://ipinfodb.com/)."""
name = "geolocate"


+ 0
- 2
earwigbot/commands/git.py Visa fil

@@ -26,8 +26,6 @@ import git

from earwigbot.commands import Command

__all__ = ["Git"]

class Git(Command):
"""Commands to interface with the bot's git repository; use '!git' for a
sub-command list."""


+ 0
- 2
earwigbot/commands/help.py Visa fil

@@ -24,8 +24,6 @@ import re

from earwigbot.commands import Command

__all__ = ["Help"]

class Help(Command):
"""Displays help information."""
name = "help"


+ 0
- 2
earwigbot/commands/langcode.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.commands import Command

__all__ = ["Langcode"]

class Langcode(Command):
"""Convert a language code into its name and a list of WMF sites in that
language."""


+ 0
- 2
earwigbot/commands/link.py Visa fil

@@ -25,8 +25,6 @@ from urllib import quote

from earwigbot.commands import Command

__all__ = ["Link"]

class Link(Command):
"""Convert a Wikipedia page name into a URL."""
name = "link"


+ 0
- 2
earwigbot/commands/notes.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.commands import Command

__all__ = ["Notes"]

class Notes(Command):
"""A mini IRC-based wiki for storing notes, tips, and reminders."""
name = "notes"


+ 0
- 2
earwigbot/commands/praise.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.commands import Command

__all__ = ["Praise"]

class Praise(Command):
"""Praise people!"""
name = "praise"


+ 0
- 2
earwigbot/commands/quit.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.commands import Command

__all__ = ["Quit"]

class Quit(Command):
"""Quit, restart, or reload components from the bot. Only the owners can
run this command."""


+ 0
- 2
earwigbot/commands/registration.py Visa fil

@@ -25,8 +25,6 @@ import time
from earwigbot import exceptions
from earwigbot.commands import Command

__all__ = ["Registration"]

class Registration(Command):
"""Return when a user registered."""
name = "registration"


+ 0
- 2
earwigbot/commands/remind.py Visa fil

@@ -25,8 +25,6 @@ import time

from earwigbot.commands import Command

__all__ = ["Remind"]

class Remind(Command):
"""Set a message to be repeated to you in a certain amount of time."""
name = "remind"


+ 0
- 2
earwigbot/commands/replag.py Visa fil

@@ -26,8 +26,6 @@ import oursql

from earwigbot.commands import Command

__all__ = ["Replag"]

class Replag(Command):
"""Return the replag for a specific database on the Toolserver."""
name = "replag"


+ 0
- 2
earwigbot/commands/rights.py Visa fil

@@ -23,8 +23,6 @@
from earwigbot import exceptions
from earwigbot.commands import Command

__all__ = ["Rights"]

class Rights(Command):
"""Retrieve a list of rights for a given username."""
name = "rights"


+ 0
- 2
earwigbot/commands/test.py Visa fil

@@ -24,8 +24,6 @@ import random

from earwigbot.commands import Command

__all__ = ["Test"]

class Test(Command):
"""Test the bot!"""
name = "test"


+ 0
- 2
earwigbot/commands/threads.py Visa fil

@@ -25,8 +25,6 @@ import re

from earwigbot.commands import Command

__all__ = ["Threads"]

class Threads(Command):
"""Manage wiki tasks from IRC, and check on thread status."""
name = "threads"


+ 0
- 2
earwigbot/commands/time.py Visa fil

@@ -31,8 +31,6 @@ except ImportError:

from earwigbot.commands import Command

__all__ = ["Time"]

class Time(Command):
"""Report the current time in any timezone (UTC default), or in beats."""
name = "time"


+ 0
- 2
earwigbot/commands/trout.py Visa fil

@@ -24,8 +24,6 @@ from unicodedata import normalize

from earwigbot.commands import Command

__all__ = ["Trout"]

class Trout(Command):
"""Slap someone with a trout, or related fish."""
name = "trout"


+ 0
- 2
earwigbot/tasks/afc_catdelink.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.tasks import Task

__all__ = ["AFCCatDelink"]

class AFCCatDelink(Task):
"""A task to delink mainspace categories in declined [[WP:AFC]]
submissions."""


+ 0
- 2
earwigbot/tasks/afc_copyvios.py Visa fil

@@ -28,8 +28,6 @@ import oursql

from earwigbot.tasks import Task

__all__ = ["AFCCopyvios"]

class AFCCopyvios(Task):
"""A task to check newly-edited [[WP:AFC]] submissions for copyright
violations."""


+ 0
- 2
earwigbot/tasks/afc_dailycats.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.tasks import Task

__all__ = ["AFCDailyCats"]

class AFCDailyCats(Task):
""" A task to create daily categories for [[WP:AFC]]."""
name = "afc_dailycats"


+ 0
- 2
earwigbot/tasks/afc_history.py Visa fil

@@ -34,8 +34,6 @@ import oursql
from earwigbot import wiki
from earwigbot.tasks import Task

__all__ = ["AFCHistory"]

class AFCHistory(Task):
"""A task to generate charts about AfC submissions over time.



+ 0
- 2
earwigbot/tasks/afc_statistics.py Visa fil

@@ -32,8 +32,6 @@ from earwigbot import exceptions
from earwigbot import wiki
from earwigbot.tasks import Task

__all__ = ["AFCStatistics"]

class AFCStatistics(Task):
"""A task to generate statistics for WikiProject Articles for Creation.



+ 0
- 2
earwigbot/tasks/afc_undated.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.tasks import Task

__all__ = ["AFCUndated"]

class AFCUndated(Task):
"""A task to clear [[Category:Undated AfC submissions]]."""
name = "afc_undated"


+ 0
- 2
earwigbot/tasks/blp_tag.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.tasks import Task

__all__ = ["BLPTag"]

class BLPTag(Task):
"""A task to add |blp=yes to ``{{WPB}}`` or ``{{WPBS}}`` when it is used
along with ``{{WP Biography}}``."""


+ 0
- 2
earwigbot/tasks/image_display_resize.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.tasks import Task

__all__ = ["ImageDisplayResize"]

class ImageDisplayResize(Task):
"""A task to resize upscaled portraits in infoboxes."""
name = "image_display_resize"


+ 0
- 2
earwigbot/tasks/wikiproject_tagger.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.tasks import Task

__all__ = ["WikiProjectTagger"]

class WikiProjectTagger(Task):
"""A task to tag talk pages with WikiProject Banners."""
name = "wikiproject_tagger"


+ 0
- 2
earwigbot/tasks/wrong_mime.py Visa fil

@@ -22,8 +22,6 @@

from earwigbot.tasks import Task

__all__ = ["WrongMIME"]

class WrongMIME(Task):
"""A task to tag files whose extensions do not agree with their MIME
type."""


Laddar…
Avbryt
Spara