convert tools.py to 4 space indent

master
mutantmonkey 2012-06-01 22:33:13 -07:00
parent 30705b87de
commit 875d6c2b2a
1 changed files with 13 additions and 13 deletions

View File

@ -13,19 +13,19 @@ class GrumbleError(Exception):
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 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())
print(__doc__.strip())