Make sanitizeOptions() work with an empty parameter list
This commit is contained in:
parent
285d73e5a6
commit
49cb542689
1 changed files with 1 additions and 1 deletions
|
|
@ -3723,7 +3723,7 @@ def generateDefaultOptions():
|
||||||
|
|
||||||
|
|
||||||
# sanitizes options by updating attributes in a set of defaults options while discarding unknown attributes
|
# sanitizes options by updating attributes in a set of defaults options while discarding unknown attributes
|
||||||
def sanitizeOptions(options):
|
def sanitizeOptions(options=None):
|
||||||
optionsDict = dict((key, getattr(options, key)) for key in dir(options) if not key.startswith('__'))
|
optionsDict = dict((key, getattr(options, key)) for key in dir(options) if not key.startswith('__'))
|
||||||
|
|
||||||
sanitizedOptions = _options_parser.get_default_values()
|
sanitizedOptions = _options_parser.get_default_values()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue