Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class GeoIndex(object):
- index = None
- @staticmethod
- def get_index():
- if GeoIndex.index is None:
- # unpickle_index is called with each different request
- GeoIndex.index = unpickle_index()
- return GeoIndex.index
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement