diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-12-01 01:39:08 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-12-01 01:39:08 +0200 |
commit | e483d160145b1086629c1ba5a2964c5550c5c126 (patch) | |
tree | 811489bcfc67287c7ef18e10adddf7846223e79c /mastodon/internals.py | |
parent | b4ede028a721243c2bfc8aa9ee38ae16b71b4ada (diff) | |
download | mastodon.py-e483d160145b1086629c1ba5a2964c5550c5c126.tar.gz |
Finish moving code out into smaller files
Diffstat (limited to 'mastodon/internals.py')
-rw-r--r-- | mastodon/internals.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mastodon/internals.py b/mastodon/internals.py index 0e77421..aa82553 100644 --- a/mastodon/internals.py +++ b/mastodon/internals.py | |||
@@ -1,3 +1,5 @@ | |||
1 | # internals.py - many internal helpers | ||
2 | |||
1 | import datetime | 3 | import datetime |
2 | from contextlib import closing | 4 | from contextlib import closing |
3 | import mimetypes | 5 | import mimetypes |
@@ -14,7 +16,7 @@ import base64 | |||
14 | import os | 16 | import os |
15 | 17 | ||
16 | from .utility import AttribAccessDict, AttribAccessList, parse_version_string | 18 | from .utility import AttribAccessDict, AttribAccessList, parse_version_string |
17 | from .error import MastodonNetworkError, MastodonIllegalArgumentError, MastodonRatelimitError, MastodonNotFoundError, \ | 19 | from .errors import MastodonNetworkError, MastodonIllegalArgumentError, MastodonRatelimitError, MastodonNotFoundError, \ |
18 | MastodonUnauthorizedError, MastodonInternalServerError, MastodonBadGatewayError, MastodonServiceUnavailableError, \ | 20 | MastodonUnauthorizedError, MastodonInternalServerError, MastodonBadGatewayError, MastodonServiceUnavailableError, \ |
19 | MastodonGatewayTimeoutError, MastodonServerError, MastodonAPIError, MastodonMalformedEventError | 21 | MastodonGatewayTimeoutError, MastodonServerError, MastodonAPIError, MastodonMalformedEventError |
20 | from .compat import urlparse, magic, PurePath | 22 | from .compat import urlparse, magic, PurePath |