Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mentat Test 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
Mentat Test 3
Commits
4ffe312c
Commit
4ffe312c
authored
1 year ago
by
Jakub Judiny
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary global modifier
(Redmine issue: #7652)
parent
c292708b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/mentat/services/bench_eventstorage.py
+0
-4
0 additions, 4 deletions
lib/mentat/services/bench_eventstorage.py
lib/mentat/services/nerd.py
+0
-2
0 additions, 2 deletions
lib/mentat/services/nerd.py
lib/mentat/services/pdnsr.py
+0
-1
0 additions, 1 deletion
lib/mentat/services/pdnsr.py
with
0 additions
and
7 deletions
lib/mentat/services/bench_eventstorage.py
+
0
−
4
View file @
4ffe312c
...
@@ -120,8 +120,6 @@ STORAGE = mentat.services.eventstorage.EventStorageService(
...
@@ -120,8 +120,6 @@ STORAGE = mentat.services.eventstorage.EventStorageService(
def
b001
():
def
b001
():
global
STORAGE
global
IDEA_INTO
IDEA_INTO
[
'
ID
'
]
=
mentat
.
const
.
random_str
(
10
)
IDEA_INTO
[
'
ID
'
]
=
mentat
.
const
.
random_str
(
10
)
STORAGE
.
insert_event
(
IDEA_INTO
)
STORAGE
.
insert_event
(
IDEA_INTO
)
...
@@ -129,8 +127,6 @@ COUNTER = 0
...
@@ -129,8 +127,6 @@ COUNTER = 0
THRESHOLD
=
1
THRESHOLD
=
1
def
b002
():
def
b002
():
global
STORAGE
global
IDEA_INTO
global
COUNTER
global
COUNTER
IDEA_INTO
[
'
ID
'
]
=
mentat
.
const
.
random_str
(
10
)
IDEA_INTO
[
'
ID
'
]
=
mentat
.
const
.
random_str
(
10
)
STORAGE
.
insert_event_bulkci
(
IDEA_INTO
)
STORAGE
.
insert_event_bulkci
(
IDEA_INTO
)
...
...
This diff is collapsed.
Click to expand it.
lib/mentat/services/nerd.py
+
0
−
2
View file @
4ffe312c
...
@@ -199,7 +199,6 @@ def init(core_config, updates = None):
...
@@ -199,7 +199,6 @@ def init(core_config, updates = None):
(Re-)Initialize :py:class:`NerdServiceManager` instance at module level and
(Re-)Initialize :py:class:`NerdServiceManager` instance at module level and
store the refence within module.
store the refence within module.
"""
"""
global
_MANAGER
# pylint: disable=locally-disabled,global-statement
_MANAGER
=
NerdServiceManager
(
core_config
,
updates
)
_MANAGER
=
NerdServiceManager
(
core_config
,
updates
)
...
@@ -208,7 +207,6 @@ def manager():
...
@@ -208,7 +207,6 @@ def manager():
Obtain reference to :py:class:`NerdServiceManager` instance stored at module
Obtain reference to :py:class:`NerdServiceManager` instance stored at module
level.
level.
"""
"""
global
_MANAGER
# pylint: disable=locally-disabled,global-statement
return
_MANAGER
return
_MANAGER
...
...
This diff is collapsed.
Click to expand it.
lib/mentat/services/pdnsr.py
+
0
−
1
View file @
4ffe312c
...
@@ -209,7 +209,6 @@ def manager():
...
@@ -209,7 +209,6 @@ def manager():
Obtain reference to :py:class:`NerdServiceManager` instance stored at module
Obtain reference to :py:class:`NerdServiceManager` instance stored at module
level.
level.
"""
"""
global
_MANAGER
# pylint: disable=locally-disabled,global-statement
return
_MANAGER
return
_MANAGER
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment