diff --git a/twython/api.py b/twython/api.py index bb10db0..76b6f28 100644 --- a/twython/api.py +++ b/twython/api.py @@ -430,7 +430,7 @@ def obtain_access_token(self): @staticmethod 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 to construct @@ -469,7 +469,7 @@ def search_gen(self, search_query, **params): # pragma: no cover return self.cursor(self.search, q=search_query, **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 (Twython.get_home_timeline, Twython.search) diff --git a/twython/streaming/types.py b/twython/streaming/types.py index 27c9ea8..5042d29 100644 --- a/twython/streaming/types.py +++ b/twython/streaming/types.py @@ -35,7 +35,7 @@ def __init__(self, streamer): self.params = None def filter(self, **params): - """Stream statuses/filter + r"""Stream statuses/filter :param \*\*params: Parameters to send with your stream request @@ -47,7 +47,7 @@ def filter(self, **params): self.streamer._request(url, 'POST', params=params) def sample(self, **params): - """Stream statuses/sample + r"""Stream statuses/sample :param \*\*params: Parameters to send with your stream request @@ -59,7 +59,7 @@ def sample(self, **params): self.streamer._request(url, params=params) def firehose(self, **params): - """Stream statuses/firehose + r"""Stream statuses/firehose :param \*\*params: Parameters to send with your stream request @@ -71,7 +71,7 @@ def firehose(self, **params): self.streamer._request(url, params=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