diff options
author | codl <[email protected]> | 2019-04-15 14:19:45 +0200 |
---|---|---|
committer | codl <[email protected]> | 2019-04-15 14:19:45 +0200 |
commit | 62a47f4e92bd58639beeb682cb7cc53ebba8b803 (patch) | |
tree | 1a4ccd48a1d7188144ae3b1c8e01fa248bea45bf | |
parent | ad96297a0608bfd5196598cc3bbcce1f4aa03bc9 (diff) | |
download | mastodon.py-62a47f4e92bd58639beeb682cb7cc53ebba8b803.tar.gz |
oops. str.is_digit() -> str.isdigit()
-rw-r--r-- | mastodon/Mastodon.py | 4 |
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 |