wiki: Fix files undefined in finally case.

This commit is contained in:
Max Goodman
2012-09-12 10:22:05 -07:00
committed by Neil Williams
parent d56f02e8ed
commit a0899409b1

View File

@@ -43,10 +43,10 @@ def make_htmldiff(a, b, adesc, bdesc):
todesc=bdesc)
def threewaymerge(original, a, b):
temp_dir = g.diff3_temp_location if g.diff3_temp_location else None
data = [a, original, b]
files = []
try:
temp_dir = g.diff3_temp_location if g.diff3_temp_location else None
data = [a, original, b]
files = []
for d in data:
f = tempfile.NamedTemporaryFile(dir=temp_dir)
f.write(d.encode('utf-8'))