summaryrefslogtreecommitdiffstats
path: root/Lib/pipes.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-09 16:38:32 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-09 16:38:32 (GMT)
commit3b0a3293c369f3c3f4753e3cb9172cb4e242af76 (patch)
treee0f9d295c0a2897ddfb7a5bf3b076be70f1492b4 /Lib/pipes.py
parent830a5151c1e2ed4d0c647efb4ad54a9a6c67e4ae (diff)
downloadcpython-3b0a3293c369f3c3f4753e3cb9172cb4e242af76.zip
cpython-3b0a3293c369f3c3f4753e3cb9172cb4e242af76.tar.gz
cpython-3b0a3293c369f3c3f4753e3cb9172cb4e242af76.tar.bz2
Massive changes from SF 589982 (tempfile.py rewrite, by Zack
Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
Diffstat (limited to 'Lib/pipes.py')
-rw-r--r--Lib/pipes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pipes.py b/Lib/pipes.py
index b565654..9de22e1 100644
--- a/Lib/pipes.py
+++ b/Lib/pipes.py
@@ -225,7 +225,8 @@ def makepipeline(infile, steps, outfile):
lkind = list[i-1][2]
rkind = list[i][2]
if lkind[1] == 'f' or rkind[0] == 'f':
- temp = tempfile.mktemp()
+ (fd, temp) = tempfile.mkstemp()
+ os.close(fd)
garbage.append(temp)
list[i-1][-1] = list[i][0] = temp
#
='commitgraph'>* bpo-34485: stdout uses surrogateescape on POSIX locale (GH-8986)Victor Stinner2018-08-291-9/+22 * bpo-34485: Add _Py_ClearStandardStreamEncoding() (GH-8982)Victor Stinner2018-08-282-96/+104 * bpo-34485: Fix _Py_InitializeCore() for C locale coercion (GH-8979)Victor Stinner2018-08-282-12/+16 * bpo-34485: Enhance init_sys_streams() (GH-8978)Victor Stinner2018-08-281-23/+63 * bpo-34403: On HP-UX, force ASCII for C locale (GH-8969)Victor Stinner2018-08-283-52/+97 * bpo-34527: POSIX locale enables the UTF-8 Mode (GH-8972)Victor Stinner2018-08-282-5/+13 * bpo-34503: Fix refleak in PyErr_SetObject() (GH-8934)Alexey Izbyshev2018-08-261-0/+1 * bpo-34492: Python/coreconfig.c: Fix _Py_wstrlist_copy() (GH-8910)Alexey Izbyshev2018-08-241-1/+4 * closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in builtin_sum...Alexey Izbyshev2018-08-241-0/+5 * bpo-34457: Python/ast.c: Add missing NULL check to alias_for_import_name(). (...Alexey Izbyshev2018-08-221-0/+2 * bpo-34170: _PyCoreConfig_Read() don't replace coerce_c_locale (GH-8658)Victor Stinner2018-08-032-17/+17 * bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592)Victor Stinner2018-08-03