projects
/
osm
/
MON.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added vROPs consumer, receiver that will consume messages & act on it. Aligned with...
[osm/MON.git]
/
plugins
/
OpenStack
/
singleton.py
diff --git
a/plugins/OpenStack/singleton.py
b/plugins/OpenStack/singleton.py
index
2edc20b
..
12cd5a9
100644
(file)
--- a/
plugins/OpenStack/singleton.py
+++ b/
plugins/OpenStack/singleton.py
@@
-1,14
+1,17
@@
+"""Simple singleton class."""
+
from __future__ import unicode_literals
class Singleton(object):
from __future__ import unicode_literals
class Singleton(object):
- """Simple singleton class"""
+ """Simple singleton class
.
"""
def __init__(self, decorated):
def __init__(self, decorated):
+ """Initialize singleton instance."""
self._decorated = decorated
def instance(self):
self._decorated = decorated
def instance(self):
- """Return singleton instance"""
+ """Return singleton instance
.
"""
try:
return self._instance
except AttributeError:
try:
return self._instance
except AttributeError: