diff --git a/tryton/tryton/plugins/__init__.py b/tryton/tryton/plugins/__init__.py index bf524a8b06..51e815bc53 100644 --- a/tryton/tryton/plugins/__init__.py +++ b/tryton/tryton/plugins/__init__.py @@ -14,7 +14,6 @@ MODULES = [] def register(): - global MODULES paths = [ os.path.join(get_config_dir(), 'plugins'), os.path.join(CURRENT_DIR, 'plugins'), diff --git a/tryton/tryton/rpc.py b/tryton/tryton/rpc.py index c3f1c316ba..a31cf3e58c 100644 --- a/tryton/tryton/rpc.py +++ b/tryton/tryton/rpc.py @@ -167,7 +167,6 @@ def reset_password(): def execute(*args): - global CONNECTION, _USER if CONNECTION is None: raise TrytonServerError('403') try: