Skip to content

Commit

Permalink
parse hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
LexiconCode committed Jan 19, 2019
1 parent dfe2b58 commit aebc8be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions caster/lib/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import errno
import _winreg

from tomlkit import dumps, parser
from tomlkit import dumps, parse

SETTINGS = {}
BASE_PATH = os.path.realpath(__file__).rsplit(os.path.sep + "lib", 1)[0].replace("\\", "/")
Expand Down Expand Up @@ -44,7 +44,7 @@ def _validate_engine_path():
'''
if os.path.isfile(_SETTINGS_PATH):
with io.open(_SETTINGS_PATH, "rt", encoding="utf-8") as toml_file:
data = parser(toml_file.read())
data = parse(toml_file.read())
engine_path = data["paths"]["ENGINE_PATH"]
if os.path.isfile(engine_path):
return engine_path
Expand Down Expand Up @@ -289,7 +289,7 @@ def _init(path):
result = {}
try:
with io.open(path, "rt", encoding="utf-8") as f:
result = loads(f.read())
result = parse(f.read())
except ValueError as e:
print("\n\n" + repr(e) + " while loading settings file: " + path + "\n\n")
print(sys.exc_info())
Expand Down
4 changes: 2 additions & 2 deletions caster/lib/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
HKEY_CURRENT_USER, OpenKey, QueryValueEx)

from dragonfly.windows.window import Window
from tomlkit import dumps, parser
from tomlkit import dumps, parse

try: # Style C -- may be imported into Caster, or externally
BASE_PATH = os.path.realpath(__file__).rsplit(os.path.sep + "caster", 1)[0]
Expand Down Expand Up @@ -82,7 +82,7 @@ def load_toml_file(path):
result = {}
try:
with io.open(path, "rt", encoding="utf-8") as f:
result = parser(f.read())
result = parse(f.read())
except IOError as e:
if e.errno == 2: # The file doesn't exist.
save_toml_file(result, path)
Expand Down
Binary file modified requirements.txt
Binary file not shown.

0 comments on commit aebc8be

Please sign in to comment.