Fix new lints in: W504 line break after binary operator W605 invalid escape sequence F841 local variable 'e' is assigned to but never used
https://github.com/PyCQA/flake8/blob/master/docs/source/release-notes/3.6.0.rst
Fix new lints in: W504 line break after binary operator W605 invalid escape sequence F841 local variable 'e' is assigned to but never used
https://github.com/PyCQA/flake8/blob/master/docs/source/release-notes/3.6.0.rst
Fix new lints in:
W504 line break after binary operator
W605 invalid escape sequence
F841 local variable 'e' is assigned to but never used
https://github.com/PyCQA/flake8/blob/master/docs/source/release-notes/3.6.0.rst
utACK ddd5d31d66f3a6ca8737f1249a8ddd830bff8950
Thanks for doing this!
LGTM.
85 | @@ -87,20 +86,20 @@ def compile_copyright_regex(copyright_style, year_style, name): 86 | "Bitcoin Core Developers\n", 87 | "the Bitcoin Core developers\n", 88 | "The Bitcoin developers\n", 89 | - "The LevelDB Authors\. All rights reserved\.\n", 90 | - "BitPay Inc\.\n", 91 | - "BitPay, Inc\.\n", 92 | - "University of Illinois at Urbana-Champaign\.\n", 93 | + r"The LevelDB Authors\. All rights reserved\.\n",
I don't think simply adding r here is correct.
>>> "The LevelDB Authors\. All rights reserved\.\n" == r"The LevelDB Authors\. All rights reserved\.\n"
False
A raw string will contain literal .\n`` which is not the intent here.
the problem here is that the . should not be escaped, not that the string is not raw !
Planning to re-open later.