Skip to content

Commit

Permalink
>fix str endswith
Browse files Browse the repository at this point in the history
  • Loading branch information
yowenter committed Jul 18, 2017
1 parent 7c46533 commit 4e4b0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daovoice/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Client(requests.Session):
def __init__(self, base_url=DAOVOICE_API, timeout=DEFAULT_TIMEOUT, headers=None, token=None):

super(Client, self).__init__()
if base_url.ends_with("/"):
if base_url.endswith("/"):
self.base_url = base_url[:-1]
else:
self.base_url = base_url
Expand Down

0 comments on commit 4e4b0fb

Please sign in to comment.