summaryrefslogtreecommitdiffstats
path: root/tools.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-07-25 19:26:52 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2015-12-03 03:29:37 +0100
commitf3b86ed2d5bce85b3b9c27eb949cd88cf7d526bc (patch)
treea187725f5ec7f1c67d2b9a471b4000ad40a16b04 /tools.py
parent4b905606692a2f147946505abe6ade1c241d1000 (diff)
downloadbot-f3b86ed2d5bce85b3b9c27eb949cd88cf7d526bc.tar.gz
bot-f3b86ed2d5bce85b3b9c27eb949cd88cf7d526bc.tar.bz2
bot-f3b86ed2d5bce85b3b9c27eb949cd88cf7d526bc.zip
fix indentation and trailing whitespaces
Diffstat (limited to 'tools.py')
-rwxr-xr-xtools.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/tools.py b/tools.py
index 47d582a..75762bd 100755
--- a/tools.py
+++ b/tools.py
@@ -7,20 +7,20 @@ Licensed under the Eiffel Forum License 2.
http://inamidst.com/phenny/
"""
-def deprecated(old):
- def new(phenny, input, old=old):
- self = phenny
- origin = type('Origin', (object,), {
- 'sender': input.sender,
- 'nick': input.nick
- })()
- match = input.match
- args = [input.bytes, input.sender, '@@']
+def deprecated(old):
+ def new(phenny, input, old=old):
+ self = phenny
+ origin = type('Origin', (object,), {
+ 'sender': input.sender,
+ 'nick': input.nick
+ })()
+ match = input.match
+ args = [input.bytes, input.sender, '@@']
- old(self, origin, match, args)
- new.__module__ = old.__module__
- new.__name__ = old.__name__
- return new
+ old(self, origin, match, args)
+ new.__module__ = old.__module__
+ new.__name__ = old.__name__
+ return new
-if __name__ == '__main__':
- print __doc__.strip()
+if __name__ == '__main__':
+ print __doc__.strip()