DescriptionClose open file handle before moving file when recording.
In record_wpr, we did the following:
temp_target_wpr_file_path = tempfile.mkstemp()[1]
In python, tempfile.mkstemp() will return a tuple containing the file handle and the file path. Since the script never closes this file handle, it looks like we throw a WindowsError when we try to move the file with the open file handle.
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285708
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|