summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-02-14 23:27:32 +0000
committerhut <hut@lavabit.com>2011-02-14 23:27:32 +0000
commite5d250baf62c52267a10e326da52a65710e739c2 (patch)
tree91d43000091a2129dc73e7e361fcbea749564b00
parent6d27a0816f3fb65cb2726df0fbfefec21e0f42bd (diff)
downloadranger-e5d250baf62c52267a10e326da52a65710e739c2.tar.gz
python 2.6 compatibility for ornicars commits
-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':