Skip to content

Commit 025380f

Browse files
committed
Reformatted using ruff
1 parent ef8f595 commit 025380f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

sync-upstream

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
Sync files from upstream release.
55
"""
66

7-
__requires__ = ['autocommand', 'requests_toolbelt', 'packaging']
7+
__requires__ = [
8+
'autocommand',
9+
'requests_toolbelt',
10+
'packaging',
11+
]
812

913

1014
import pathlib
@@ -16,9 +20,9 @@ from requests_toolbelt import sessions
1620

1721

1822
gh_content = sessions.BaseUrlSession(
19-
'https://raw.githubusercontent.com/python/cpython/')
20-
gh_api = sessions.BaseUrlSession(
21-
'https://api.github.com/repos/python/cpython/')
23+
'https://raw.githubusercontent.com/python/cpython/'
24+
)
25+
gh_api = sessions.BaseUrlSession('https://api.github.com/repos/python/cpython/')
2226

2327
paths = (
2428
'Lib/configparser.py',
@@ -61,8 +65,10 @@ def run(pre=False):
6165
resp.raise_for_status()
6266
pathlib.Path(path).write_bytes(resp.content)
6367
cmd = [
64-
'git', 'commit',
68+
'git',
69+
'commit',
6570
'-a',
66-
'-m', f'cpython-{version} rev={tag["commit"]["sha"][:12]}',
71+
'-m',
72+
f'cpython-{version} rev={tag["commit"]["sha"][:12]}',
6773
]
6874
subprocess.run(cmd)

0 commit comments

Comments
 (0)