MCPcopy Create free account
hub / github.com/ActiveState/code / get_session

Function get_session

recipes/Python/577524_Python_Sessions/recipe-577524.py:209–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 SESSION.destroy()
208
209def get_session():
210 global SESSION
211 if not SESSION:
212 SESSION = Session()
213 return SESSION
214
215### The following is a (little) modified version of this:
216# http://www.evanfosmark.com/2009/01/cross-platform-file-locking-support-in-

Callers

nothing calls this directly

Calls 1

SessionClass · 0.70

Tested by

no test coverage detected