File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 25
25
import sys
26
26
27
27
from pylint .config import ConfigurationMixIn
28
- from pylint .pyreverse import writer
29
28
from pylint .pyreverse .diadefslib import DiadefsHandler
30
29
from pylint .pyreverse .inspector import Linker , project_from_files
31
30
from pylint .pyreverse .utils import insert_default_options
31
+ from pylint .pyreverse .writer import get_writer_for_filetype
32
32
33
33
OPTIONS = (
34
34
(
@@ -239,12 +239,8 @@ def run(self, args):
239
239
finally :
240
240
sys .path .pop (0 )
241
241
242
- if self .config .output_format == "vcg" :
243
- writer .VCGWriter (self .config ).write (diadefs )
244
- elif self .config .output_format == "puml" :
245
- writer .PlantUmlWriter (self .config ).write (diadefs )
246
- else :
247
- writer .DotWriter (self .config ).write (diadefs )
242
+ writer = get_writer_for_filetype (self .config .output_format )
243
+ writer (self .config ).write (diadefs )
248
244
return 0
249
245
250
246
You can’t perform that action at this time.
0 commit comments