diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-24 14:22:58 +0200 |
|---|---|---|
| committer | Georgios Andreadis <info@gandreadis.com> | 2020-06-24 14:22:58 +0200 |
| commit | a1782de1037dc1f818c45257d978da888e87ff85 (patch) | |
| tree | 1c80597a51d7571d3449698bf5bb209a96fe2bdb /opendc/util/parameter_checker.py | |
| parent | db979d36d0b9693cc81ffa0bdd29364c6218fc95 (diff) | |
Improve mocking logic
Diffstat (limited to 'opendc/util/parameter_checker.py')
| -rw-r--r-- | opendc/util/parameter_checker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc/util/parameter_checker.py b/opendc/util/parameter_checker.py index d3e7ef13..bf02ba9b 100644 --- a/opendc/util/parameter_checker.py +++ b/opendc/util/parameter_checker.py @@ -48,7 +48,7 @@ def _incorrect_parameter(params_required, params_actual, parent=''): if param_required == 'int' and not isinstance(param_actual, int): return '{}.{}'.format(parent, param_name) - if param_required == 'string' and not isinstance(param_actual, basestring): + if param_required == 'string' and not isinstance(param_actual, str): return '{}.{}'.format(parent, param_name) if param_required.startswith('list') and not isinstance(param_actual, list): |
