mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
wiki: Fix files undefined in finally case.
This commit is contained in:
committed by
Neil Williams
parent
d56f02e8ed
commit
a0899409b1
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user