From 97beb87a99c106402e43b6f0e43c8cec9bd26107 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 10 Oct 2011 19:58:32 +0200 Subject: core.actions: renamed Actions.source_cmdlist to Actions.source --- ranger/core/actions.py | 2 +- ranger/core/helper.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 83d3b201..a109a1d6 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -199,7 +199,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): return macros - def source_cmdlist(self, filename): + def source(self, filename): filename = os.path.expanduser(filename) for line in open(filename, 'r'): line = line.rstrip("\r\n") diff --git a/ranger/core/helper.py b/ranger/core/helper.py index dfc710c0..5c93a734 100644 --- a/ranger/core/helper.py +++ b/ranger/core/helper.py @@ -115,9 +115,9 @@ def load_settings(fm, clean): load_default_rc = custom_conf_size < default_conf_size - 2048 if load_default_rc: - fm.source_cmdlist(default_conf) + fm.source(default_conf) if os.access(custom_conf, os.R_OK): - fm.source_cmdlist(custom_conf) + fm.source(custom_conf) # Load plugins try: @@ -153,7 +153,7 @@ def load_settings(fm, clean): comcont.load_commands_from_object(fm, include) comcont.load_commands_from_module(commands) fm.commands = comcont - fm.source_cmdlist(fm.relpath('defaults', 'rc.conf')) + fm.source(fm.relpath('defaults', 'rc.conf')) fm.apps = apps.CustomApplications() -- cgit 1.4.1-2-gfad0