Skip to content

Commit

Permalink
Don't shadow type() function
Browse files Browse the repository at this point in the history
  • Loading branch information
TobleMiner committed Sep 7, 2020
1 parent 9531ea3 commit 622cc19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def from_parser(cls, section, parser, globals):
'''
from domain import DomainType

type = parser.get(section, 'DomainType', fallback=globals.default_domain_type)
domain_type = parser.get(section, 'DomainType', fallback=globals.default_domain_type)
# Get DomainOptions subclass for type and instantiate
return DomainType.get(type.lower()).options(section, parser, globals)
return DomainType.get(domain_type.lower()).options(section, parser, globals)

def __init__(self, name, parser, globals):
''' Initialize common options
Expand Down

0 comments on commit 622cc19

Please sign in to comment.