Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mininet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olaf Bergmann
mininet
Commits
a56d9a66
Commit
a56d9a66
authored
10 years ago
by
lantz
Browse files
Options
Downloads
Plain Diff
Merge pull request #344 from bentenshan/patch-1
fix Singleton.__call__ error
parents
b0048c0a
0983ed29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mininet/log.py
+1
-1
1 addition, 1 deletion
mininet/log.py
with
1 addition
and
1 deletion
mininet/log.py
+
1
−
1
View file @
a56d9a66
...
...
@@ -69,7 +69,7 @@ def __init__( cls, name, bases, dict_ ):
def
__call__
(
cls
,
*
args
,
**
kw
):
if
cls
.
instance
is
None
:
cls
.
instance
=
super
(
Singleton
,
cls
).
__call__
(
*
args
,
**
kw
)
return
cls
.
instance
return
cls
.
instance
class
MininetLogger
(
Logger
,
object
):
...
...
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