Created
April 16, 2014 22:57
-
-
Save dolph/10940604 to your computer and use it in GitHub Desktop.
Lazily import dependency package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@property | |
def access_token(self): | |
if self._access_token is None: | |
from contrib import oauth1 | |
self._access_token = oauth1.Whatever() | |
return self._access_token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment