and access_type don't always play nice together. Details
https://dev.twitter.com/discussions/21281"""
+log = logging.getLogger(__name__)
+
class AuthHandler(object):
if signin_with_twitter:
url = self._get_oauth_url('authenticate')
if access_type:
- logging.warning(WARNING_MESSAGE)
+ log.warning(WARNING_MESSAGE)
else:
url = self._get_oauth_url('authorize')
self.request_token = self._get_request_token(access_type=access_type)
STREAM_VERSION = '1.1'
+log = logging.getLogger(__name__)
+
class StreamListener(object):
if self.on_user_withheld(data['user_withheld']) is False:
return False
else:
- logging.error("Unknown message type: %s", raw_data)
+ log.error("Unknown message type: %s", raw_data)
def keep_alive(self):
"""Called when a keep-alive arrived"""