From e5d250baf62c52267a10e326da52a65710e739c2 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 14 Feb 2011 23:27:32 +0000 Subject: python 2.6 compatibility for ornicars commits --- ranger/defaults/apps.py | 3 +-- 1 file changed, 1 insertion(+), 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': -- cgit 1.4.1-2-gfad0