mirror of https://github.com/interlegis/sapl.git
Marcio Mazza
9 years ago
6 changed files with 40 additions and 38 deletions
@ -1,12 +1,6 @@ |
|||||
import inspect |
import inspect |
||||
|
|
||||
|
|
||||
def listify(function): |
|
||||
def f(*args, **kwargs): |
|
||||
return list(function(*args, **kwargs)) |
|
||||
return f |
|
||||
|
|
||||
|
|
||||
def getsourcelines(model): |
def getsourcelines(model): |
||||
return [line.rstrip('\n').decode('utf-8') |
return [line.rstrip('\n').decode('utf-8') |
||||
for line in inspect.getsourcelines(model)[0]] |
for line in inspect.getsourcelines(model)[0]] |
||||
|
Loading…
Reference in new issue