Skip to content

Commit

Permalink
has_key fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnfarrell committed Nov 7, 2022
1 parent 21a2afd commit 3864470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smallrnaseq/config.py
Expand Up @@ -68,7 +68,7 @@ def create_config_parser_from_dict(data, sections, **kwargs):
cp = configparser.ConfigParser()
for s in sections:
cp.add_section(s)
if not data.has_key(s):
if not s in data.keys():
continue
for i in data[s]:
name,val = i
Expand Down

0 comments on commit 3864470

Please sign in to comment.