sync mkstemp fix from puppet

This commit is contained in:
Ricky Zhou (周家杰) 2009-11-21 18:56:31 -05:00
parent 48b55259d4
commit 0df54308f9

View file

@ -148,7 +148,7 @@ def main():
# grab a temporary filename and dump our file in there
tempfile.tempdir = module_dir
tmpfile = tempfile.mkstemp(md5sum)
tmpfile = tempfile.mkstemp(md5sum)[1]
tmpfd = open(tmpfile, 'w')
# now read the whole file in