From 62a47f4e92bd58639beeb682cb7cc53ebba8b803 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 15 Apr 2019 14:19:45 +0200 Subject: oops. str.is_digit() -> str.isdigit() --- mastodon/Mastodon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 0550d85..123d1a6 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -2279,7 +2279,7 @@ class Mastodon: next_params['_pagination_method'] = method next_params['_pagination_endpoint'] = endpoint max_id = matchgroups.group(1) - if max_id.is_digit(): + if max_id.isdigit(): next_params['max_id'] = int(max_id) else: next_params['max_id'] = max_id @@ -2297,7 +2297,7 @@ class Mastodon: prev_params['_pagination_method'] = method prev_params['_pagination_endpoint'] = endpoint since_id = matchgroups.group(1) - if since_id.is_digit(): + if since_id.isdigit(): prev_params['since_id'] = int(since_id) else: prev_params['since_id'] = since_id -- cgit v1.2.3