Skip to content

Commit

Permalink
Reformatted using ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 18, 2024
1 parent ef8f595 commit 025380f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions sync-upstream
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
Sync files from upstream release.
"""

__requires__ = ['autocommand', 'requests_toolbelt', 'packaging']
__requires__ = [
'autocommand',
'requests_toolbelt',
'packaging',
]


import pathlib
Expand All @@ -16,9 +20,9 @@ from requests_toolbelt import sessions


gh_content = sessions.BaseUrlSession(
'https://github.com/raw/python/cpython/')
gh_api = sessions.BaseUrlSession(
'https://github.com/gitapi/repos/python/cpython/')
'https://github.com/raw/python/cpython/'
)
gh_api = sessions.BaseUrlSession('https://github.com/gitapi/repos/python/cpython/')

paths = (
'Lib/configparser.py',
Expand Down Expand Up @@ -61,8 +65,10 @@ def run(pre=False):
resp.raise_for_status()
pathlib.Path(path).write_bytes(resp.content)
cmd = [
'git', 'commit',
'git',
'commit',
'-a',
'-m', f'cpython-{version} rev={tag["commit"]["sha"][:12]}',
'-m',
f'cpython-{version} rev={tag["commit"]["sha"][:12]}',
]
subprocess.run(cmd)

0 comments on commit 025380f

Please sign in to comment.