diff options
| author | Anthony Sottile <asottile@umich.edu> | 2020-01-13 04:17:23 +0000 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2020-01-13 04:17:23 +0000 |
| commit | 24c2693979612f1178c444bc991beaed58933a20 (patch) | |
| tree | 7f48c7b752dd223d5c993852eb998f4960f47400 /src/flake8 | |
| parent | 8ac28d7d1d2478648a8227b4022790b8ab431196 (diff) | |
| parent | e887ef33177b1d7617c6f1cf816e323886863b64 (diff) | |
| download | flake8-24c2693979612f1178c444bc991beaed58933a20.tar.gz | |
Merge branch 'config-remove-parent-tail-state' into 'master'
config: Remove ConfigFileFinder 'parent' and 'tail' attributes
See merge request pycqa/flake8!400
Diffstat (limited to 'src/flake8')
| -rw-r--r-- | src/flake8/options/config.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py index 7261bcd..dab16c4 100644 --- a/src/flake8/options/config.py +++ b/src/flake8/options/config.py @@ -51,8 +51,6 @@ class ConfigFileFinder(object): self.local_directory = os.path.abspath(os.curdir) - self.parent = self.tail = os.getcwd() - # caches to avoid double-reading config files self._local_configs = None self._local_found_files = [] # type: List[str] @@ -96,8 +94,7 @@ class ConfigFileFinder(object): def generate_possible_local_files(self): """Find and generate all local config files.""" - tail = self.tail - parent = self.parent + parent = tail = os.getcwd() found_config_files = False while tail and not found_config_files: for project_filename in self.project_filenames: |
