use __str__ no need for u'' anymore

This commit is contained in:
j 2016-10-13 15:14:52 +02:00
commit 2f5f0dc864
6 changed files with 24 additions and 24 deletions

View file

@ -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):