use __str__ no need for u'' anymore
This commit is contained in:
parent
a569629373
commit
2f5f0dc864
6 changed files with 24 additions and 24 deletions
|
|
@ -110,7 +110,7 @@ class ApiActions(dict):
|
|||
fc = filter(lambda c: hasattr(c.cell_contents, '__call__'), f.func_closure)
|
||||
f = fc[len(fc)-1].cell_contents
|
||||
info = f.func_code.co_filename[len(settings.PROJECT_ROOT)+1:]
|
||||
info = u'%s:%s' % (info, f.func_code.co_firstlineno)
|
||||
info = '%s:%s' % (info, f.func_code.co_firstlineno)
|
||||
return info, trim(inspect.getsource(f))
|
||||
|
||||
def register(self, method, action=None, cache=True, version=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue