Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. class DeltasReader:
  2.  
  3.     static_instance = None
  4.  
  5.     def __init__(self):
  6.         DeltasReader.static_instance = self
  7.  
  8.     @classmethod
  9.     def get_instance(cls):
  10.         return cls() if cls.static_instance == None else cls.static_instance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement