Skip to content

Commit ac26300

Browse files
committed
Fix YAML Unicode characters above U+FFFF.
1 parent ddc8fec commit ac26300

2 files changed

Lines changed: 17656 additions & 17658 deletions

File tree

scriptshifter/tables/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464

6565
logger = logging.getLogger(__name__)
6666

67-
tbl_index = None # Module-level index of all scripts.
67+
with open(path.join(path.dirname(TABLE_DIR), "index.yml")) as fh:
68+
tbl_index = load(fh, Loader=Loader)
6869

6970

7071
class Token(str):
@@ -165,9 +166,6 @@ def init_db():
165166
conn.executescript(fh.read())
166167

167168
# Populate tables.
168-
global tbl_index
169-
with open(path.join(path.dirname(TABLE_DIR), "index.yml")) as fh:
170-
tbl_index = load(fh, Loader=Loader)
171169
try:
172170
with conn:
173171
for tname, tdata in tbl_index.items():

0 commit comments

Comments
 (0)