diff options
| author | ?ric Araujo <merwok@netwok.org> | 2010-07-31 13:58:32 +0200 |
|---|---|---|
| committer | ?ric Araujo <merwok@netwok.org> | 2010-07-31 13:58:32 +0200 |
| commit | 7557d93d0f54a8768391cd0ff22e8843d7bd96a6 (patch) | |
| tree | cf0f319c382b5bd1a265161d0a3b346437a58e55 /src/distutils2/command | |
| parent | 9ac5d8f7fb4b858e58e72c9f659ad20cfd510956 (diff) | |
| download | disutils2-7557d93d0f54a8768391cd0ff22e8843d7bd96a6.tar.gz | |
Remove unsafe mktemp use
Diffstat (limited to 'src/distutils2/command')
| -rw-r--r-- | src/distutils2/command/bdist_wininst.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/distutils2/command/bdist_wininst.py b/src/distutils2/command/bdist_wininst.py index 7b55de1..dd2b8ba 100644 --- a/src/distutils2/command/bdist_wininst.py +++ b/src/distutils2/command/bdist_wininst.py @@ -177,8 +177,8 @@ class bdist_wininst (Command): # And make an archive relative to the root of the # pseudo-installation tree. - from tempfile import mktemp - archive_basename = mktemp() + from tempfile import NamedTemporaryFile + archive_basename = NamedTemporaryFile().name fullname = self.distribution.get_fullname() arcname = self.make_archive(archive_basename, "zip", root_dir=self.bdist_dir) |
