Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. class GeoIndex(object):
  2. index = None
  3.  
  4. @staticmethod
  5. def get_index():
  6. if GeoIndex.index is None:
  7. # unpickle_index is called with each different request
  8. GeoIndex.index = unpickle_index()
  9. return GeoIndex.index
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement