Merge "Change the default parameter values in common.MakeTempFile()."

This commit is contained in:
Tao Bao
2017-03-05 17:00:38 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 4 deletions

View File

@@ -872,7 +872,7 @@ def ParseOptions(argv,
return args
def MakeTempFile(prefix=None, suffix=None):
def MakeTempFile(prefix='tmp', suffix=''):
"""Make a temp file and add it to the list of things to be deleted
when Cleanup() is called. Return the filename."""
fd, fn = tempfile.mkstemp(prefix=prefix, suffix=suffix)