From f4cf168a72f2b06b434ffcc0e45f949c6a87253a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 23 Apr 2019 10:34:37 +0530 Subject: [PATCH] plugins_mirror should not rely on getcwdu --- setup/plugins_mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/plugins_mirror.py b/setup/plugins_mirror.py index eeb14039a4..061cc77ee3 100644 --- a/setup/plugins_mirror.py +++ b/setup/plugins_mirror.py @@ -380,7 +380,7 @@ def log(*args, **kwargs): def atomic_write(raw, name): - with tempfile.NamedTemporaryFile(dir=os.getcwdu(), delete=False) as f: + with tempfile.NamedTemporaryFile(dir=os.getcwd(), delete=False) as f: f.write(raw) os.fchmod(f.fileno(), stat.S_IREAD|stat.S_IWRITE|stat.S_IRGRP|stat.S_IROTH) os.rename(f.name, name)