Skip to content

Commit 7ae2783

Browse files
committed
address review comments
1 parent ebb3ce7 commit 7ae2783

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

cms/db/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"version", "engine",
4646
# session
4747
"Session", "ScopedSession", "SessionGen", "custom_psycopg2_connection",
48-
"Session",
4948
# types
5049
"CastingArray", "Codename", "Filename", "FilenameSchema",
5150
"FilenameSchemaArray", "Digest",
@@ -89,7 +88,7 @@
8988

9089
metadata = MetaData(engine)
9190

92-
from .session import Session, Session, ScopedSession, SessionGen, \
91+
from .session import Session, ScopedSession, SessionGen, \
9392
custom_psycopg2_connection
9493

9594
from .types import CastingArray, Codename, Filename, FilenameSchema, \

cms/server/contest/submission/file_retrieval.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ def extract_files_from_tornado(
111111
files look like they consist of just a compressed archive, extract
112112
it and return its contents instead.
113113
114-
tornado_files: a bunch of
115-
files, in Tornado's format.
114+
tornado_files: a bunch of files, in Tornado's format.
116115
117116
return: the same bunch of files, in our format
118117
(except if it was an archive: then it's the archive's contents).

cms/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ def _get_shard_from_addresses(service: str, addrs: list[tuple[int, str]]) -> int
302302
specified addresses.
303303
304304
service: the name of the service.
305-
addrs: a list like the one returned by
306-
find_local_addresses().
305+
addrs: a list like the one returned by find_local_addresses().
307306
308307
returns: the found shard, or None in case it doesn't exist.
309308

0 commit comments

Comments
 (0)