mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 16:22:57 -07:00
Update cherrypy-18.6.1
This commit is contained in:
parent
b3ae6bd695
commit
ebffd124f6
57 changed files with 1269 additions and 1509 deletions
|
@ -22,8 +22,6 @@ Tools may be implemented as any object with a namespace. The builtins
|
|||
are generally either modules or instances of the tools.Tool class.
|
||||
"""
|
||||
|
||||
import six
|
||||
|
||||
import cherrypy
|
||||
from cherrypy._helper import expose
|
||||
|
||||
|
@ -37,14 +35,9 @@ def _getargs(func):
|
|||
"""Return the names of all static arguments to the given function."""
|
||||
# Use this instead of importing inspect for less mem overhead.
|
||||
import types
|
||||
if six.PY3:
|
||||
if isinstance(func, types.MethodType):
|
||||
func = func.__func__
|
||||
co = func.__code__
|
||||
else:
|
||||
if isinstance(func, types.MethodType):
|
||||
func = func.im_func
|
||||
co = func.func_code
|
||||
if isinstance(func, types.MethodType):
|
||||
func = func.__func__
|
||||
co = func.__code__
|
||||
return co.co_varnames[:co.co_argcount]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue