diff options
author | hut <hut@lavabit.com> | 2013-03-12 14:19:01 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-03-12 14:19:01 +0100 |
commit | f0a7599df497fa673cd08426be297362b1e1bf87 (patch) | |
tree | 5d00436e943d6c86d698159ae423705e4eca4298 /ranger | |
parent | bce590250dbfebb21e42a6ae9939f82ca877048d (diff) | |
download | ranger-f0a7599df497fa673cd08426be297362b1e1bf87.tar.gz |
api.commands: make SETTINGS_RE private
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/api/commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py index 06bbdb57..abe40be6 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -11,7 +11,7 @@ from ranger.api import * from ranger.core.shared import FileManagerAware from ranger.ext.lazy_property import lazy_property -SETTINGS_RE = re.compile(r'^\s*([^\s]+?)=(.*)$') +_SETTINGS_RE = re.compile(r'^\s*([^\s]+?)=(.*)$') DELETE_WARNING = 'delete seriously? ' # COMPAT def alias(*_): pass # COMPAT @@ -155,7 +155,7 @@ class Command(FileManagerAware): def parse_setting_line(self): if self._setting_line is not None: return self._setting_line - match = SETTINGS_RE.match(self.rest(1)) + match = _SETTINGS_RE.match(self.rest(1)) if match: self.firstpart += match.group(1) + '=' result = [match.group(1), match.group(2), True] |