Skip to content
Snippets Groups Projects
Commit 4ffe312c authored by Jakub Judiny's avatar Jakub Judiny
Browse files

Remove unnecessary global modifier

(Redmine issue: #7652)
parent c292708b
No related branches found
No related tags found
No related merge requests found
......@@ -120,8 +120,6 @@ STORAGE = mentat.services.eventstorage.EventStorageService(
def b001():
global STORAGE
global IDEA_INTO
IDEA_INTO['ID'] = mentat.const.random_str(10)
STORAGE.insert_event(IDEA_INTO)
......@@ -129,8 +127,6 @@ COUNTER = 0
THRESHOLD = 1
def b002():
global STORAGE
global IDEA_INTO
global COUNTER
IDEA_INTO['ID'] = mentat.const.random_str(10)
STORAGE.insert_event_bulkci(IDEA_INTO)
......
......@@ -199,7 +199,6 @@ def init(core_config, updates = None):
(Re-)Initialize :py:class:`NerdServiceManager` instance at module level and
store the refence within module.
"""
global _MANAGER # pylint: disable=locally-disabled,global-statement
_MANAGER = NerdServiceManager(core_config, updates)
......@@ -208,7 +207,6 @@ def manager():
Obtain reference to :py:class:`NerdServiceManager` instance stored at module
level.
"""
global _MANAGER # pylint: disable=locally-disabled,global-statement
return _MANAGER
......
......@@ -209,7 +209,6 @@ def manager():
Obtain reference to :py:class:`NerdServiceManager` instance stored at module
level.
"""
global _MANAGER # pylint: disable=locally-disabled,global-statement
return _MANAGER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment