[Libreoffice-bugs] [Bug 139523] [GRAMMAR CHECKER] LightProof makes Python complain on FutureWarnings for pt-BR

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jul 29 15:42:02 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=139523

--- Comment #1 from elmau <public at correolibre.net> ---
The razor is: 

Support for nested sets and set operations in regular expressions as in Unicode
Technical Standard #18 might be added in the future. This would change the
syntax. To facilitate this future change a FutureWarning will be raised in
ambiguous cases for the time being. That include sets starting with a literal
'[' or containing literal character sequences '--', '&&', '~~', and '||'. To
avoid a warning, escape them with a backslash. (Contributed by Serhiy Storchaka
in bpo-30349.)

https://docs.python.org/dev/whatsnew/3.7.html

so... 

vrenuncia =
re.compile("(?i)\\b([Aa]\|\[[\xc0\xe0]|[Aa]nuncia|[Aa]nunciava|[Aa]nunciam|[Aa]nunciou|[Cc]om|[Cc]omo|[Cc]oncedeu|[Cc]uja|[Dd]a|[Dd]e|[Dd]esaprova|[Dd]oce|[Dd]upla|[Ee]|[\xc9\xe9]|[Ee]m|[Ee]ssa|[Ee]st\xfapida|[Ee]ventual|[Ff]azer|[Ff]requente|[Gg]enerosa|[Hh]ouve|[Ii]mediata|[Ii]mpliquem|[Ii]mporta|[Ii]mportar\xe1|[Mm]inha|[Nn]a|[Nn]ega|[Nn]ossa|[Nn]uma|[Oo]u|[Pp]ela|[Pp]equena|[Pp]osterior|[Pp]resumir|[Pp]romove|[Pp]romover|[Pp]ura|[Rr]epresentaram|[Ss]ignifique|[Ss]ua|[Tt]ua|[\xda\xfa]ltima|[\xda\xfa]nica|[Uu]ma)
renuncia\\b")

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210729/de0315a5/attachment.htm>


More information about the Libreoffice-bugs mailing list