Multiple Fixes #267

Merged
michaelhelmick merged 11 commits from requests2 into master 2013-09-25 10:52:52 -07:00
Showing only changes of commit 99067c3e6f - Show all commits

View file

@ -10,6 +10,7 @@ Twitter API calls.
from .. import __version__
from ..compat import json, is_py3
from ..helpers import _transparent_params
from .types import TwythonStreamerTypes
import requests
@ -88,6 +89,8 @@ class TwythonStreamer(object):
self.handlers = handlers if handlers else ['delete', 'limit', 'disconnect']
self.chunk_size = chunk_size
def _request(self, url, method='GET', params=None):
"""Internal stream request handling"""
self.connected = True
@ -95,6 +98,7 @@ class TwythonStreamer(object):
method = method.lower()
func = getattr(self.client, method)
params, _ = _transparent_params(params)
def _send(retry_counter):
requests_args = {}