2edc20bfe9891ffdd650a3e862d68a39b4f4a853
1 from __future__
import unicode_literals
4 class Singleton(object):
5 """Simple singleton class"""
7 def __init__(self
, decorated
):
8 self
._decorated
= decorated
11 """Return singleton instance"""
14 except AttributeError:
15 self
._instance
= self
._decorated
()