aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodl <[email protected]>2019-04-15 14:19:45 +0200
committercodl <[email protected]>2019-04-15 14:19:45 +0200
commit62a47f4e92bd58639beeb682cb7cc53ebba8b803 (patch)
tree1a4ccd48a1d7188144ae3b1c8e01fa248bea45bf
parentad96297a0608bfd5196598cc3bbcce1f4aa03bc9 (diff)
downloadmastodon.py-62a47f4e92bd58639beeb682cb7cc53ebba8b803.tar.gz
oops. str.is_digit() -> str.isdigit()
-rw-r--r--mastodon/Mastodon.py4
1 files changed, 2 insertions, 2 deletions
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:
2279 next_params['_pagination_method'] = method 2279 next_params['_pagination_method'] = method
2280 next_params['_pagination_endpoint'] = endpoint 2280 next_params['_pagination_endpoint'] = endpoint
2281 max_id = matchgroups.group(1) 2281 max_id = matchgroups.group(1)
2282 if max_id.is_digit(): 2282 if max_id.isdigit():
2283 next_params['max_id'] = int(max_id) 2283 next_params['max_id'] = int(max_id)
2284 else: 2284 else:
2285 next_params['max_id'] = max_id 2285 next_params['max_id'] = max_id
@@ -2297,7 +2297,7 @@ class Mastodon:
2297 prev_params['_pagination_method'] = method 2297 prev_params['_pagination_method'] = method
2298 prev_params['_pagination_endpoint'] = endpoint 2298 prev_params['_pagination_endpoint'] = endpoint
2299 since_id = matchgroups.group(1) 2299 since_id = matchgroups.group(1)
2300 if since_id.is_digit(): 2300 if since_id.isdigit():
2301 prev_params['since_id'] = int(since_id) 2301 prev_params['since_id'] = int(since_id)
2302 else: 2302 else:
2303 prev_params['since_id'] = since_id 2303 prev_params['since_id'] = since_id
Powered by cgit v1.2.3 (git 2.41.0)