convert tools.py to 4 space indent
parent
30705b87de
commit
875d6c2b2a
26
tools.py
26
tools.py
|
@ -13,19 +13,19 @@ class GrumbleError(Exception):
|
||||||
|
|
||||||
|
|
||||||
def deprecated(old):
|
def deprecated(old):
|
||||||
def new(phenny, input, old=old):
|
def new(phenny, input, old=old):
|
||||||
self = phenny
|
self = phenny
|
||||||
origin = type('Origin', (object,), {
|
origin = type('Origin', (object,), {
|
||||||
'sender': input.sender,
|
'sender': input.sender,
|
||||||
'nick': input.nick
|
'nick': input.nick
|
||||||
})()
|
})()
|
||||||
match = input.match
|
match = input.match
|
||||||
args = [input.bytes, input.sender, '@@']
|
args = [input.bytes, input.sender, '@@']
|
||||||
|
|
||||||
old(self, origin, match, args)
|
old(self, origin, match, args)
|
||||||
new.__module__ = old.__module__
|
new.__module__ = old.__module__
|
||||||
new.__name__ = old.__name__
|
new.__name__ = old.__name__
|
||||||
return new
|
return new
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print(__doc__.strip())
|
print(__doc__.strip())
|
||||||
|
|
Loading…
Reference in New Issue