88 @rtype QWidget |
88 @rtype QWidget |
89 """ |
89 """ |
90 if args.file: |
90 if args.file: |
91 fileName = os.path.basename(args.file) |
91 fileName = os.path.basename(args.file) |
92 if fileName.startswith("hg-histedit-"): |
92 if fileName.startswith("hg-histedit-"): |
93 from HgHisteditPlanEditor import HgHisteditPlanEditor # noqa: I101, I102 |
93 from HgHisteditPlanEditor import HgHisteditPlanEditor # noqa: I-101, I-102 |
94 |
94 |
95 return HgHisteditPlanEditor(args.file) |
95 return HgHisteditPlanEditor(args.file) |
96 elif fileName.startswith("hg-editor-"): |
96 elif fileName.startswith("hg-editor-"): |
97 from HgHisteditCommitEditor import ( # noqa: I101, I102 |
97 from HgHisteditCommitEditor import ( # noqa: I-101, I-102 |
98 HgHisteditCommitEditor, |
98 HgHisteditCommitEditor, |
99 ) |
99 ) |
100 |
100 |
101 return HgHisteditCommitEditor(args.file) |
101 return HgHisteditCommitEditor(args.file) |
102 |
102 |