108 "os.path.samefile('foo', 'bar') should be replaced by " |
108 "os.path.samefile('foo', 'bar') should be replaced by " |
109 "foo_path.samefile(bar_path)", |
109 "foo_path.samefile(bar_path)", |
110 ), |
110 ), |
111 "P-212": QCoreApplication.translate( |
111 "P-212": QCoreApplication.translate( |
112 "PathlibChecker", |
112 "PathlibChecker", |
113 "os.path.splitext('foo.bar') should be replaced by foo_path.suffix", |
113 "os.path.splitext('foo.bar') should be replaced by foo_path.stem and" |
|
114 " foo_path.suffix", |
114 ), |
115 ), |
115 "P-213": QCoreApplication.translate( |
116 "P-213": QCoreApplication.translate( |
116 "PathlibChecker", |
117 "PathlibChecker", |
117 "os.path.relpath('/bar/foo', start='bar') should be replaced by " |
118 "os.path.relpath('/bar/foo', start='bar') should be replaced by " |
118 "foo_path.relative_to('/bar')", |
119 "foo_path.relative_to('/bar')", |