Skip to content

Commit 66792e0

Browse files
committed
Revert "Fix YAML Unicode characters above U+FFFF."
Needs some validation of the affected lines. This reverts commit ac26300.
1 parent ac26300 commit 66792e0

2 files changed

Lines changed: 17658 additions & 17656 deletions

File tree

scriptshifter/tables/__init__.py

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

6565
logger = logging.getLogger(__name__)
6666

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

7069

7170
class Token(str):
@@ -166,6 +165,9 @@ def init_db():
166165
conn.executescript(fh.read())
167166

168167
# 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)
169171
try:
170172
with conn:
171173
for tname, tdata in tbl_index.items():

0 commit comments

Comments
 (0)