Skip to content

Commit e3f44ed

Browse files
committed
fix(generator): codacy warnings on pr
1 parent 8bdd7c6 commit e3f44ed

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

generator.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
import os
22

33
from pathlib import Path
4-
from yaml import load
4+
from yaml import safe_load
55
from yaml import YAMLError
66

77
from utils import run_config
88
from utils import angular_convention
99
from utils import changelog_convention
1010
from utils import symphony_convention
11-
from utils import possible_configurations
1211

1312
tag = ''
14-
# msg = ''
1513
tag_is_lowercase = False
1614
tag_is_uppercase = False
1715
tag_is_capitalized = False
@@ -22,7 +20,7 @@
2220
if file_path.is_file():
2321
with open(str(file_path), 'r') as stream:
2422
try:
25-
config = load(stream)
23+
config = safe_load(stream)
2624
tag, tag_is_capitalized, tag_is_lowercase, tag_is_uppercase, convention = run_config(config, tag, tag_is_capitalized, tag_is_lowercase, tag_is_uppercase, convention)
2725
if convention != '' or convention != 'custom':
2826
if convention == 'angular':

0 commit comments

Comments
 (0)