diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-01-17 20:17:00 -0600 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-01-17 20:17:00 -0600 |
| commit | 01da7d8b9a40b7d1d1dfb8f2281e814d8084d276 (patch) | |
| tree | 0a828241391a66da34fdadb953972eadcb346741 | |
| parent | Run pre-commit on all files (diff) | |
| parent | Fix bug with isinstance use in config file (diff) | |
| download | config-file-01da7d8b9a40b7d1d1dfb8f2281e814d8084d276.zip | |
Merge branch 'json'
| -rw-r--r-- | CHANGELOG.md | 6 | ||||
| -rw-r--r-- | config_file/config_file.py | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index ad1669f..b76d2d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +Fixed + +- `isinstance` call for `BaseParser` to be correctly used. + ## 0.3.0 - 2020-01-17 Added diff --git a/config_file/config_file.py b/config_file/config_file.py index a57e77f..c47def2 100644 --- a/config_file/config_file.py +++ b/config_file/config_file.py @@ -21,7 +21,7 @@ class ConfigFile: return Path(file_path) def __determine_parser(self, file_path: str, parser): - if isinstance(BaseParser, parser): + if isinstance(parser, BaseParser): return parser(self.contents) file_type = self._split_on_dot(file_path, all_dots=True)[-1] |