Skip to content

Commit 409a4cb

Browse files
committed
Use yaml.full_load
1 parent 5ffe95f commit 409a4cb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dotconfig/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ def __init__(self, app, name, base_dir='~/.config/',
6363
with open(self.full_path, 'w') as f:
6464
if template:
6565
if isinstance(template, str):
66-
f.write(template)
66+
f.write(template)
6767
elif isinstance(template, dict):
6868
yaml.dump(template, f, default_flow_style=False)
6969
else:
7070
yaml.dump({}, f, default_flow_style=False)
7171

7272
self._data = defaults
7373
with open(self.full_path, 'r') as f:
74-
data = yaml.load(f)
74+
data = yaml.full_load(f)
7575
self._data.update(data)
7676
# load envvars if given and override
7777
for k, v in envvars.iteritems():

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setup(
1010
name="pydotconfig",
11-
version="0.1.3",
11+
version="0.1.4",
1212
description="Super simple python module for parsing structured config files with overrides",
1313
long_description=open('README.md').read(),
1414
url="https://github.com/adammhaile/dotconfig",

0 commit comments

Comments
 (0)