diff --git a/atomicwrites/__init__.py b/atomicwrites/__init__.py index cfa5c29..b342db6 100644 --- a/atomicwrites/__init__.py +++ b/atomicwrites/__init__.py @@ -165,7 +165,7 @@ def _open(self, get_fileobject): except Exception: pass - def get_fileobject(self, suffix="", prefix=tempfile.template, dir=None, + def get_fileobject(self, suffix="", prefix=tempfile.gettempprefix(), dir=None, **kwargs): '''Return the temporary file to use.''' if dir is None: