Also fix variable name
This commit is contained in:
Paul O'Leary McCann 2023-01-26 15:26:41 +09:00
parent a36d0ff28f
commit c458962742

View File

@ -1035,9 +1035,9 @@ def make_tempdir() -> Generator[Path, None, None]:
try: try:
with tempfile.TemporaryDirectory() as td: with tempfile.TemporaryDirectory() as td:
yield td yield Path(td)
except PermissionError as e: except PermissionError as e:
warnings.warn(Warnings.W091.format(dir=d, msg=e)) warnings.warn(Warnings.W091.format(dir=td, msg=e))
def is_cwd(path: Union[Path, str]) -> bool: def is_cwd(path: Union[Path, str]) -> bool: