Merge pull request #532 from tirkarthi/fix-warnings
Fix deprecation warning regarding invalid escape sequences.
This commit is contained in:
commit
ecc5f103f4
2 changed files with 6 additions and 6 deletions
|
|
@ -431,7 +431,7 @@ class Twython(EndpointsMixin, object):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def construct_api_url(api_url, **params):
|
def construct_api_url(api_url, **params):
|
||||||
"""Construct a Twitter API url, encoded, with parameters
|
r"""Construct a Twitter API url, encoded, with parameters
|
||||||
|
|
||||||
:param api_url: URL of the Twitter API endpoint you are attempting
|
:param api_url: URL of the Twitter API endpoint you are attempting
|
||||||
to construct
|
to construct
|
||||||
|
|
@ -470,7 +470,7 @@ class Twython(EndpointsMixin, object):
|
||||||
return self.cursor(self.search, q=search_query, **params)
|
return self.cursor(self.search, q=search_query, **params)
|
||||||
|
|
||||||
def cursor(self, function, return_pages=False, **params):
|
def cursor(self, function, return_pages=False, **params):
|
||||||
"""Returns a generator for results that match a specified query.
|
r"""Returns a generator for results that match a specified query.
|
||||||
|
|
||||||
:param function: Instance of a Twython function
|
:param function: Instance of a Twython function
|
||||||
(Twython.get_home_timeline, Twython.search)
|
(Twython.get_home_timeline, Twython.search)
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ class TwythonStreamerTypesStatuses(object):
|
||||||
self.params = None
|
self.params = None
|
||||||
|
|
||||||
def filter(self, **params):
|
def filter(self, **params):
|
||||||
"""Stream statuses/filter
|
r"""Stream statuses/filter
|
||||||
|
|
||||||
:param \*\*params: Parameters to send with your stream request
|
:param \*\*params: Parameters to send with your stream request
|
||||||
|
|
||||||
|
|
@ -47,7 +47,7 @@ class TwythonStreamerTypesStatuses(object):
|
||||||
self.streamer._request(url, 'POST', params=params)
|
self.streamer._request(url, 'POST', params=params)
|
||||||
|
|
||||||
def sample(self, **params):
|
def sample(self, **params):
|
||||||
"""Stream statuses/sample
|
r"""Stream statuses/sample
|
||||||
|
|
||||||
:param \*\*params: Parameters to send with your stream request
|
:param \*\*params: Parameters to send with your stream request
|
||||||
|
|
||||||
|
|
@ -59,7 +59,7 @@ class TwythonStreamerTypesStatuses(object):
|
||||||
self.streamer._request(url, params=params)
|
self.streamer._request(url, params=params)
|
||||||
|
|
||||||
def firehose(self, **params):
|
def firehose(self, **params):
|
||||||
"""Stream statuses/firehose
|
r"""Stream statuses/firehose
|
||||||
|
|
||||||
:param \*\*params: Parameters to send with your stream request
|
:param \*\*params: Parameters to send with your stream request
|
||||||
|
|
||||||
|
|
@ -71,7 +71,7 @@ class TwythonStreamerTypesStatuses(object):
|
||||||
self.streamer._request(url, params=params)
|
self.streamer._request(url, params=params)
|
||||||
|
|
||||||
def set_dynamic_filter(self, **params):
|
def set_dynamic_filter(self, **params):
|
||||||
"""Set/update statuses/filter
|
r"""Set/update statuses/filter
|
||||||
|
|
||||||
:param \*\*params: Parameters to send with your stream request
|
:param \*\*params: Parameters to send with your stream request
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue