Skip to content

Commit 57104a8

Browse files
authored
Merge pull request #10188 from internetarchive/sort__all__imports
sort the imports from __all__
2 parents fe16f87 + 76ad50b commit 57104a8

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

openlibrary/core/cache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
from openlibrary.utils.dateutil import MINUTE_SECS
2323

2424
__all__ = [
25-
"cached_property",
2625
"Cache",
27-
"MemoryCache",
2826
"MemcacheCache",
27+
"MemoryCache",
2928
"RequestCache",
30-
"memoize",
31-
"memcache_memoize",
29+
"cached_property",
3230
"get_memcache",
31+
"memcache_memoize",
32+
"memoize",
3333
]
3434

3535
DEFAULT_CACHE_LIFETIME = 2 * MINUTE_SECS

openlibrary/core/formats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from openlibrary.core.helpers import NothingEncoder
99

10-
__all__ = ["load_yaml", "dump_yaml"]
10+
__all__ = ["dump_yaml", "load_yaml"]
1111

1212

1313
def load_yaml(text):

openlibrary/coverstore/coverlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
logger = getLogger("openlibrary.coverstore.coverlib")
1515

16-
__all__ = ["save_image", "read_image", "read_file"]
16+
__all__ = ["read_file", "read_image", "save_image"]
1717

1818

1919
def save_image(data, category, olid, author=None, ip=None, source_url=None):

openlibrary/coverstore/oldb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from openlibrary.coverstore import config
99
from openlibrary.utils import olmemcache
1010

11-
__all__ = ["query", "get"]
11+
__all__ = ["get", "query"]
1212

1313

1414
def is_supported():

openlibrary/plugins/worksearch/subjects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from openlibrary.solr.query_utils import query_dict_to_str
1717
from openlibrary.utils import str_to_key
1818

19-
__all__ = ["SubjectEngine", "get_subject", "SubjectMeta"]
19+
__all__ = ["SubjectEngine", "SubjectMeta", "get_subject"]
2020

2121

2222
DEFAULT_RESULTS = 12

openlibrary/utils/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"""
44

55
__all__ = [
6+
"Column",
67
"Schema",
78
"Table",
8-
"Column",
9-
"register_datatype",
109
"register_constant",
10+
"register_datatype",
1111
]
1212

1313
_datatypes = {}

0 commit comments

Comments
 (0)