2009-08-11 22:19:06 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
# Terminator by Chris Jones <cmsj@tenshu.net>
|
|
|
|
# GPL v2 only
|
|
|
|
"""borg.py - We are the borg. Resistance is futile.
|
|
|
|
http://code.activestate.com/recipes/66531/"""
|
|
|
|
|
2009-08-11 22:23:34 +00:00
|
|
|
# pylint: disable-msg=R0903
|
2009-08-11 22:19:06 +00:00
|
|
|
class Borg:
|
2009-08-11 22:23:34 +00:00
|
|
|
"""Definition of a class that can never be duplicated"""
|
2009-08-11 22:19:06 +00:00
|
|
|
__shared_state = {}
|
|
|
|
def __init__(self):
|
2009-08-11 22:23:34 +00:00
|
|
|
self.__dict__ = self.__shared_state
|
2009-08-11 22:19:06 +00:00
|
|
|
|
2009-08-11 22:23:34 +00:00
|
|
|
# vim: set expandtab ts=4 sw=4:
|