fix script for python 12

This commit is contained in:
kleines Filmröllchen 2025-01-28 11:14:17 +01:00
parent b15a513939
commit 88e4b44d10
Signed by: filmroellchen
SSH key fingerprint: SHA256:NarU6J/XgCfEae4rbei0YIdN2pYaYDccarK6R53dnc8

View file

@ -7,8 +7,6 @@ import logging
import git import git
from os import environ as env, chdir from os import environ as env, chdir
from pathlib import Path from pathlib import Path
from typing import Generator
from subprocess import call
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile
import requests import requests
@ -21,7 +19,7 @@ action_ref = env["GITHUB_REF"]
# token = env["GITHUB_TOKEN"] # token = env["GITHUB_TOKEN"]
def collect_user_dirs() -> Generator[Path]: def collect_user_dirs():
return ( return (
dir dir
for dir in Path(".").glob("*") for dir in Path(".").glob("*")