Skip to content

Commit b189a19

Browse files
committed
tests/dbutils.py: Consistently enclose strings in "
tests/dbutils.py: - Replace the few single quotes as Python string delimiters with double quotes. - In a docstring, fix a single curly double quote ” to an ASCII double quote ". (The lone double quote seemed to confuse Python code indentation in Emacs.)
1 parent 6b71e16 commit b189a19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/dbutils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,12 +266,12 @@ def get_collation(korp_conf):
266266
with self._connect() as conn:
267267
cursor = conn.cursor()
268268
dbname = self._make_db_name(cursor)
269-
charset = korp_conf['DBCHARSET']
269+
charset = korp_conf["DBCHARSET"]
270270
collate = get_collation(korp_conf)
271271
if collate:
272272
collate = f" COLLATE {collate}"
273-
user = self._db_options['user']
274-
host = self._conn_params['host']
273+
user = self._db_options["user"]
274+
host = self._conn_params["host"]
275275
sqls = [
276276
f"CREATE DATABASE {dbname} CHARACTER SET {charset}{collate};",
277277
f"GRANT ALL ON {dbname}.* TO '{user}'@'{host}';",
@@ -341,7 +341,7 @@ def compile_filenames(filenames):
341341
342342
If a filename does not end in ".tsv", add the suffix. If a
343343
filename does not begin with ".*/", add the prefix.
344-
Replace corpus name placeholder "{corpus} with
344+
Replace corpus name placeholder "{corpus}" with
345345
"(?P<corpus>[a-zA-Z0-9_-]+?)".
346346
"""
347347
filenames_re = []

0 commit comments

Comments
 (0)