mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
All its warnings are extracted into the bundle, but they are still poorly adapted for translation. Each of them in constructed from two separate messages, a common prefix and an individual feature description, with negation of the main verb being split. Only the first message can vary depending on the affected versions number, but both parts of the verb need to agree in many languages other than English. It's not clear how to address it without overhauling inspection internals, thus it will be revised later. I also slightly updated the warnings format. Namely, put "version" in plural, if a warning applies to multiple Python versions, and removed trailing periods from single-sentence messages. GitOrigin-RevId: 51e577201b11fb4e8b6967e1f5ad27143ba9f82e
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
print(<error descr="Python version 3.4 does not support <>, use != instead">a <> 3</error>)
|
|
<error descr="Python version 3.4 does not support backquotes, use repr() instead">`foo()`</error>
|
|
a = <error descr="Python version 3.4 does not support a trailing 'l'">123l</error>
|
|
a = <error descr="Python version 3.4 does not support this syntax. It requires '0o' prefix for octal literals">043</error>
|
|
a = 0X43
|
|
a = 0X43
|
|
a = 0x43
|
|
a = 0O43
|
|
a = 0o43
|
|
a = 0B1
|
|
a = 0b1
|
|
a = 0.0
|
|
s = u"text"
|
|
<error descr="Python version 3.4 does not support this syntax">raise a, b, c</error>
|
|
<error descr="Python version 3.4 does not support this syntax">raise a, b</error>
|
|
|
|
try:
|
|
pass
|
|
<error descr="Python version 3.4 does not support this syntax">except a, name:
|
|
pass</error>
|
|
|
|
[x * 2 for x in <error descr="Python version 3.4 does not support this syntax in list comprehensions">vec1, vec2</error>]
|
|
|
|
<error descr="Python version 3.4 does not have module __builtin__">import __builtin__</error>
|
|
|
|
<error descr="No exception to reraise">raise</error>
|
|
|
|
try:
|
|
pass
|
|
except:
|
|
raise
|
|
|
|
def exception_handler():
|
|
if undefined:
|
|
raise
|
|
log_somehow()
|
|
|