diff options
author | hut <hut@lavabit.com> | 2011-02-14 23:27:32 +0000 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-02-14 23:27:32 +0000 |
commit | e5d250baf62c52267a10e326da52a65710e739c2 (patch) | |
tree | 91d43000091a2129dc73e7e361fcbea749564b00 | |
parent | 6d27a0816f3fb65cb2726df0fbfefec21e0f42bd (diff) | |
download | ranger-e5d250baf62c52267a10e326da52a65710e739c2.tar.gz |
python 2.6 compatibility for ornicars commits
-rw-r--r-- | ranger/defaults/apps.py | 3 |
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': |