[geany/infrastructure] b2d577: Pep8 cleanup
Enrico Tröger
git-noreply at xxxxx
Wed Nov 13 20:28:10 UTC 2013
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger at uvena.de>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Wed, 13 Nov 2013 20:28:10 UTC
Commit: b2d577aca0c4534260a58646ab3df44b896dc4a4
https://github.com/geany/infrastructure/commit/b2d577aca0c4534260a58646ab3df44b896dc4a4
Log Message:
-----------
Pep8 cleanup
Modified Paths:
--------------
ircbot-plugins/Geany/plugin.py
Modified: ircbot-plugins/Geany/plugin.py
64 files changed, 29 insertions(+), 35 deletions(-)
===================================================================
@@ -35,10 +35,7 @@
import threading
from ConfigParser import SafeConfigParser
-import supybot.utils as utils
from supybot.commands import *
-import supybot.ircmsgs as ircmsgs
-import supybot.ircutils as ircutils
import supybot.callbacks as callbacks
import supybot.conf as conf
@@ -56,7 +53,7 @@
'milk': 'A nice sexy waitress brings %s a glass of fresh, cold milk',
'chocolate': 'A nice sexy waitress brings %s a piece of sweet chocolate',
'pizza': 'Someone calls Mario, and he brings %s a tasty hawaiian pizza!'
-};
+}
class Geany(callbacks.Plugin):
@@ -88,7 +85,8 @@ def _write_help_database(self):
f.close()
def _write_user_list(self, irc):
- exclude_nicks = [ 'ChanServ', self._get_nick_name() ]
+ exclude_nicks = ['ChanServ', self._get_nick_name()]
+
def filter_services(value):
return value not in exclude_nicks
@@ -191,7 +189,6 @@ def hello(self, irc, msg, args, text):
Greetings
"""
- cmd = self._get_command_name(msg, 'hi')
text = 'Hi %s. My name is %s and I\'m here to offer additional services to you! Try \"?? help\" for general information.' % (msg.nick, self._get_nick_name())
irc.reply(text)
@@ -200,7 +197,6 @@ def thanks(self, irc, msg, args, text):
Thanks
"""
- cmd = self._get_command_name(msg, 'thanks')
text = '%s, no problem. It was a pleasure to serve you.' % (msg.nick)
irc.reply(text)
@@ -284,35 +280,33 @@ def commit(self, irc, msg, args, idx):
irc.reply('Malformed Git SHA')
# "decorate" our commands (wrap is a decorator replacement for old Python versions)
- tea = wrap(goodie, [ optional(many('text')) ])
- coffee = wrap(goodie, [ optional(many('text')) ])
- coke = wrap(goodie, [ optional(many('text')) ])
- pepsi = wrap(goodie, [ optional(many('text')) ])
- juice = wrap(goodie, [ optional(many('text')) ])
- vodka = wrap(goodie, [ optional(many('text')) ])
- beer = wrap(goodie, [ optional(many('text')) ])
- pizza = wrap(goodie, [ optional(many('text')) ])
- chocolate = wrap(goodie, [ optional(many('text')) ])
- milk = wrap(goodie, [ optional(many('text')) ])
- goodies = wrap(listgoodies, [ optional(many('text')) ])
- goods = wrap(listgoodies, [ optional(many('text')) ])
-
-
- hi = wrap(hello, [ optional(many('text')) ])
- hello = wrap(hello, [ optional(many('text')) ])
- hey = wrap(hello, [ optional(many('text')) ])
-
- thanks = wrap(thanks, [ optional(many('text')) ])
- thankyou = wrap(thanks, [ optional(many('text')) ])
- thx = wrap(thanks, [ optional(many('text')) ])
-
- learn = wrap(learn, [ 'something', 'text' ])
- alias = wrap(alias, [ 'something', 'something' ])
-
- test = wrap(test, [ optional(many('text')) ])
+ tea = wrap(goodie, [optional(many('text'))])
+ coffee = wrap(goodie, [optional(many('text'))])
+ coke = wrap(goodie, [optional(many('text'))])
+ pepsi = wrap(goodie, [optional(many('text'))])
+ juice = wrap(goodie, [optional(many('text'))])
+ vodka = wrap(goodie, [optional(many('text'))])
+ beer = wrap(goodie, [optional(many('text'))])
+ pizza = wrap(goodie, [optional(many('text'))])
+ chocolate = wrap(goodie, [optional(many('text'))])
+ milk = wrap(goodie, [optional(many('text'))])
+ goodies = wrap(listgoodies, [optional(many('text'))])
+ goods = wrap(listgoodies, [optional(many('text'))])
+
+ hi = wrap(hello, [optional(many('text'))])
+ hello = wrap(hello, [optional(many('text'))])
+ hey = wrap(hello, [optional(many('text'))])
+
+ thanks = wrap(thanks, [optional(many('text'))])
+ thankyou = wrap(thanks, [optional(many('text'))])
+ thx = wrap(thanks, [optional(many('text'))])
+
+ learn = wrap(learn, ['something', 'text'])
+ alias = wrap(alias, ['something', 'something'])
+
+ test = wrap(test, [optional(many('text'))])
moo = wrap(moo)
- commit = wrap(commit, [ 'text' ])
-
+ commit = wrap(commit, ['text'])
Class = Geany
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list