Skip to content

Commit 501995d

Browse files
authored
Update yaml_config.py
Fix issue number #336. Fix deprecated warning of loading yaml config file.
1 parent ae9ba6f commit 501995d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commitizen/config/yaml_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def set_key(self, key, value):
3838
We use to update the version number.
3939
"""
4040
with open(self.path, "r") as yaml_file:
41-
parser = yaml.load(yaml_file)
41+
parser = yaml.load(yaml_file, Loader=yaml.FullLoader)
4242

4343
parser["commitizen"][key] = value
4444
with open(self.path, "w") as yaml_file:

0 commit comments

Comments
 (0)