Skip to content

Commit 9e3c64a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a4d65f9 commit 9e3c64a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/virtualenv/seed/wheels/periodic_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def _pypi_get_distribution_info(distribution):
350350
try:
351351
for context in _request_context():
352352
try:
353-
with urlopen(url, context=context) as file_handler: # noqa: S310
353+
with urlopen(url, context=context) as file_handler:
354354
content = json.load(file_handler)
355355
break
356356
except URLError as exception:

tasks/update_embedded.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def rebuild(script_path):
3030
script_parts = []
3131
match_end = 0
3232
next_match = None
33-
_count, did_update = 0, False
34-
for _count, next_match in enumerate(file_regex.finditer(script_content)):
33+
count, did_update = 0, False
34+
for count, next_match in enumerate(file_regex.finditer(script_content)):
3535
script_parts += [script_content[match_end : next_match.start()]]
3636
match_end = next_match.end()
3737
filename, variable_name, previous_encoded = next_match.group(1), next_match.group(2), next_match.group(3)
@@ -43,7 +43,7 @@ def rebuild(script_path):
4343
script_parts += [script_content[match_end:]]
4444
new_content = "".join(script_parts)
4545

46-
report(1 if not _count or did_update else 0, new_content, next_match, script_content, script_path)
46+
report(1 if not count or did_update else 0, new_content, next_match, script_content, script_path)
4747

4848

4949
def handle_file(previous_content, filename, variable_name, previous_encoded):

0 commit comments

Comments
 (0)