Skip to content

Commit 0ca870e

Browse files
committed
Add pyupgrade
1 parent 6fb4c40 commit 0ca870e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cpython-windows/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def static_replace_in_file(p: pathlib.Path, search, replace):
300300
fh.write(data)
301301

302302

303-
OPENSSL_PROPS_REMOVE_RULES_LEGACY = b"""
303+
OPENSSL_PROPS_REMOVE_RULES_LEGACY = rb"""
304304
<ItemGroup>
305305
<_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).dll" />
306306
<_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).pdb" />
@@ -315,7 +315,7 @@ def static_replace_in_file(p: pathlib.Path, search, replace):
315315
</Target>
316316
"""
317317

318-
OPENSSL_PROPS_REMOVE_RULES = b"""
318+
OPENSSL_PROPS_REMOVE_RULES = rb"""
319319
<ItemGroup>
320320
<_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).dll" />
321321
<_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).pdb" />

pythonbuild/cpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ def derive_setup_local(
632632
}
633633

634634

635-
RE_INITTAB_ENTRY = re.compile('\{"([^"]+)", ([^\}]+)\},')
635+
RE_INITTAB_ENTRY = re.compile(r'\{"([^"]+)", ([^\}]+)\},')
636636

637637

638638
def parse_config_c(s: str):

ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ select = [
1010
"ISC", # flake8-implicit-str-concat
1111
"RUF100", # unused noqa (yesqa)
1212
"UP", # pyupgrade
13+
"W", # pycodestyle
1314
]

0 commit comments

Comments
 (0)