summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/defaults/apps.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 25ea17e4..8c59c57a 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -56,8 +56,7 @@ class CustomApplications(Applications):
 
 		return_file = os.getenv("RANGER_RETURN_FILE")
 		if return_file is not None:
-			with open(return_file, 'w') as tmp:
-				tmp.write(f.path)
+			open(return_file, 'w').write(f.path)
 			raise SystemExit()
 
 		if f.basename.lower() == 'makefile':