Skip to content

Commit

Permalink
Fix deprecation warning regarding invalid escape sequences.
Browse files Browse the repository at this point in the history
  • Loading branch information
tirkarthi committed Apr 12, 2020
1 parent 02fb356 commit 233b20a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions twython/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions twython/streaming/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 233b20a

Please sign in to comment.