diff options
author | Mark Byrne <mbyrnepr2@gmail.com> | 2021-03-07 12:32:56 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-07 13:22:45 +0100 |
commit | 31b9eded5a8891406bd1a85a3e899d9ef30511c6 (patch) | |
tree | 36e81faf8d7308cea46ba78a5529a6c40b96924b /pylint/pyreverse/writer.py | |
parent | 76368cf1b241cfc92aac422b6d75e8cb2ebb1af1 (diff) | |
download | pylint-git-31b9eded5a8891406bd1a85a3e899d9ef30511c6.tar.gz |
pyreverse: Add output directory command-line option
- Use the formatting of `black` pre-commit hook
Issue: #4159
Diffstat (limited to 'pylint/pyreverse/writer.py')
-rw-r--r-- | pylint/pyreverse/writer.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pylint/pyreverse/writer.py b/pylint/pyreverse/writer.py index 3c75f06a0..ece3c6593 100644 --- a/pylint/pyreverse/writer.py +++ b/pylint/pyreverse/writer.py @@ -35,9 +35,7 @@ class DiagramWriter: basename = diagram.title.strip().replace(" ", "_") file_name = f"{basename}.{self.config.output_format}" if os.path.exists(self.config.output_directory): - file_name = os.path.join( - self.config.output_directory, - file_name) + file_name = os.path.join(self.config.output_directory, file_name) self.set_printer(file_name, basename) if diagram.TYPE == "class": self.write_classes(diagram) |