Skip to content

Commit 0701608

Browse files
committed
var name consistency
1 parent 265391a commit 0701608

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

file_diffs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ def run_diff(self, a, b, from_file=None, to_file=None):
9898
def diff_with_external(self, a, b, from_file=None, to_file=None):
9999
if os.path.exists(from_file):
100100
if not os.path.exists(to_file):
101-
tmpFile = tempfile.NamedTemporaryFile(delete=False)
102-
to_file = tmpFile.name
103-
tmpFile.close()
101+
tmp_file = tempfile.NamedTemporaryFile(delete=False)
102+
to_file = tmp_file.name
103+
tmp_file.close()
104104

105-
tmpFile = codecs.open(to_file, encoding='utf-8', mode='w+')
106-
tmpFile.write(b)
107-
tmpFile.close()
105+
tmp_file = codecs.open(to_file, encoding='utf-8', mode='w+')
106+
tmp_file.write(b)
107+
tmp_file.close()
108108

109109
command = SETTINGS.get('cmd')
110110
if command is not None:

0 commit comments

Comments
 (0)