Mon, 21 Oct 2024 16:21:24 +0200
Third Party Packages
- Upgraded `pycodestyle` to version 2.12.1
--- a/docs/ThirdParty.md Mon Oct 21 13:30:23 2024 +0200 +++ b/docs/ThirdParty.md Mon Oct 21 16:21:24 2024 +0200 @@ -8,7 +8,7 @@ | eradicate | 2.3.0 | MIT License (Expat License) | | mccabe | 0.7.0 | MIT License (Expat License) | | pip-licenses | 5.0.0 | MIT License (MIT) | -| pycodestyle | 2.12.0 | MIT License (Expat License) | +| pycodestyle | 2.12.1 | MIT License (Expat License) | | pyflakes | 3.2.0 | MIT License (MIT) | | | | | | jquery | 3.7.1 | MIT License (MIT) |
--- a/docs/changelog.md Mon Oct 21 13:30:23 2024 +0200 +++ b/docs/changelog.md Mon Oct 21 16:21:24 2024 +0200 @@ -6,6 +6,8 @@ - Made the code compatible with Python 3.13. - IDE Server - Extended the eric-ide server integration in the file browser. +- Third Party Packages + - Upgraded `pycodestyle` to version 2.12.1. ### Version 24.10 - bug fixes
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py Mon Oct 21 13:30:23 2024 +0200 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/pycodestyle.py Mon Oct 21 16:21:24 2024 +0200 @@ -84,7 +84,7 @@ ): # pragma: no cover (<py310) tokenize._compile = lru_cache(tokenize._compile) # type: ignore -__version__ = '2.12.0-eric' +__version__ = '2.12.1-eric' DEFAULT_EXCLUDE = '.svn,CVS,.bzr,.hg,.git,__pycache__,.tox' DEFAULT_IGNORE = 'E121,E123,E126,E226,E24,E704,W503,W504' @@ -1981,7 +1981,10 @@ if token_type == tokenize.STRING: text = mute_string(text) elif token_type == FSTRING_MIDDLE: # pragma: >=3.12 cover - text = 'x' * len(text) + # fstring tokens are "unescaped" braces -- re-escape! + brace_count = text.count('{') + text.count('}') + text = 'x' * (len(text) + brace_count) + end = (end[0], end[1] + brace_count) if prev_row: (start_row, start_col) = start if prev_row != start_row: # different row