This file contains hidden or 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
import signal | |
# .... | |
def _death_handler(signum, frame): | |
""" | |
Handles SIGINT/SIGQUIT by cleaning up partially-added threads | |
""" | |
utils.print_ts('Caught fatal signal {}'.format(signum)) |
This file contains hidden or 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
import authomatic | |
from authomatic.providers import oauth2 | |
class Facebook_2_0(oauth2.Facebook): | |
user_authorization_url = 'https://www.facebook.com/v2.0/dialog/oauth' | |
access_token_url = 'https://graph.facebook.com/v2.0/oauth/access_token' | |
user_info_url = 'https://graph.facebook.com/v2.0/me' | |
user_info_scope = ['public_profile', 'email'] |