src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/PathLib/translations.py

branch
eric7
changeset 11150
73d80859079c
parent 11147
dee6e106b4d3
equal deleted inserted replaced
11149:fc45672fae42 11150:73d80859079c
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')",

eric ide

mercurial