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

branch
eric7
changeset 10363
6244c89dbc3f
parent 10362
cfa7034cccf6
child 10367
b189ca1f5d53
equal deleted inserted replaced
10362:cfa7034cccf6 10363:6244c89dbc3f
33 "LoggingChecker", 33 "LoggingChecker",
34 "logging statement uses 'warn' instead of 'warning'", 34 "logging statement uses 'warn' instead of 'warning'",
35 ), 35 ),
36 "L121": QCoreApplication.translate( 36 "L121": QCoreApplication.translate(
37 "LoggingChecker", 37 "LoggingChecker",
38 "logging statement uses an extra field that clashes with a LogRecord field: {0}" 38 "logging statement uses an extra field that clashes with a LogRecord field:"
39 " {0}",
39 ), 40 ),
40 "L130": QCoreApplication.translate( 41 "L130": QCoreApplication.translate(
41 "LoggingChecker", 42 "LoggingChecker",
42 "logging statement uses exception in arguments" 43 "logging statement uses exception in arguments",
43 ), 44 ),
44 "L131": QCoreApplication.translate( 45 "L131": QCoreApplication.translate(
45 "LoggingChecker", 46 "LoggingChecker",
46 "logging: .exception(...) should be used instead of .error(..., exc_info=True)" 47 "logging: .exception(...) should be used instead of .error(..., exc_info=True)",
47 ), 48 ),
48 "L132": QCoreApplication.translate( 49 "L132": QCoreApplication.translate(
49 "LoggingChecker", 50 "LoggingChecker",
50 "logging statement has redundant exc_info" 51 "logging statement has redundant exc_info",
51 ), 52 ),
52 } 53 }
53 54
54 _loggingMessagesSampleArgs = { 55 _loggingMessagesSampleArgs = {
55 "L121": ["pathname"] 56 "L121": ["pathname"],
56 } 57 }

eric ide

mercurial