<a: Make output nicer for source code
I've made the output nicer for source code.master
parent
5962fd7c12
commit
89c334b9d0
|
@ -22,7 +22,7 @@ def last_tilde(msg):
|
||||||
if callable(data):
|
if callable(data):
|
||||||
datax = inspect.getclosurevars(data).nonlocals
|
datax = inspect.getclosurevars(data).nonlocals
|
||||||
if len(datax) == 0:
|
if len(datax) == 0:
|
||||||
data = inspect.getsource(data)
|
data = ' '.join(inspect.getsource(data).rsplit())
|
||||||
else: data = datax
|
else: data = datax
|
||||||
if answer is None:
|
if answer is None:
|
||||||
data = str(data)
|
data = str(data)
|
||||||
|
|
Loading…
Reference in New Issue