Skip to content

Commit

Permalink
Update pyupgrade to Python 3.7+ (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangchenli committed Aug 11, 2023
1 parent 3030822 commit e5a7893
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -19,7 +19,7 @@ repos:
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py36-plus]
args: [--py37-plus]

- repo: https://github.com/psf/black
rev: 22.12.0
Expand Down
2 changes: 1 addition & 1 deletion src/packaging/_musllinux.py
Expand Up @@ -47,7 +47,7 @@ def _get_musl_version(executable: str) -> Optional[_MuslVersion]:
return None
if ld is None or "musl" not in ld:
return None
proc = subprocess.run([ld], stderr=subprocess.PIPE, universal_newlines=True)
proc = subprocess.run([ld], stderr=subprocess.PIPE, text=True)
return _parse_musl_version(proc.stderr)


Expand Down
2 changes: 1 addition & 1 deletion src/packaging/tags.py
Expand Up @@ -406,7 +406,7 @@ def mac_platforms(
check=True,
env={"SYSTEM_VERSION_COMPAT": "0"},
stdout=subprocess.PIPE,
universal_newlines=True,
text=True,
).stdout
version = cast("MacVersion", tuple(map(int, version_str.split(".")[:2])))
else:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_musllinux.py
Expand Up @@ -72,7 +72,7 @@ def mock_run(*args, **kwargs):
pretend.call(
[ld_musl],
stderr=subprocess.PIPE,
universal_newlines=True,
text=True,
)
]
else:
Expand Down

0 comments on commit e5a7893

Please sign in to comment.