mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
[WebUI] Replace func_globals with __globals__ for Py3 compat
This commit is contained in:
parent
08b61eb50b
commit
fbcddff6ea
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ class JSON(resource.Resource, component.Component):
|
|||
# This will eventually process methods that the server adds
|
||||
# and any plugins.
|
||||
meth = self._local_methods[method]
|
||||
meth.func_globals['__request__'] = request
|
||||
meth.__globals__['__request__'] = request
|
||||
component.get("Auth").check_request(request, meth)
|
||||
return meth(*params)
|
||||
raise JSONException("Unknown system method")
|
||||
|
|
Loading…
Add table
Reference in a new issue