Skip to content

Commit

Permalink
Merge pull request #532 from tirkarthi/fix-warnings
Browse files Browse the repository at this point in the history
Fix deprecation warning regarding invalid escape sequences.
  • Loading branch information
ryanmcgrath authored Jul 16, 2021
2 parents f9cf798 + 233b20a commit ecc5f10
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 @@ -431,7 +431,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 @@ -470,7 +470,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 ecc5f10

Please sign in to comment.