summaryrefslogtreecommitdiffstats
path: root/editor.py
diff options
context:
space:
mode:
Diffstat (limited to 'editor.py')
-rw-r--r--editor.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor.py b/editor.py
index 34c9ad1f..7400ba1a 100644
--- a/editor.py
+++ b/editor.py
@@ -78,11 +78,11 @@ least one of these before using this command."""
78 78
79 if subprocess.Popen(editor + [path]).wait() != 0: 79 if subprocess.Popen(editor + [path]).wait() != 0:
80 raise EditorError() 80 raise EditorError()
81 fd = open(path) 81 fd2 = open(path)
82 try: 82 try:
83 return read() 83 return fd2.read()
84 finally: 84 finally:
85 fd.close() 85 fd2.close()
86 finally: 86 finally:
87 if fd: 87 if fd:
88 os.close(fd) 88 os.close(fd)