diff options
author | hut <hut@lavabit.com> | 2013-03-15 17:31:56 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-03-15 17:31:56 +0100 |
commit | e124e26958ad9db38ef836a129fab09fc9b2268a (patch) | |
tree | 4217d27ef551c08c7acc891e6d5a9a4c237299c9 /ranger | |
parent | fd212529eb177af62400b118f5fcc6b27c828f93 (diff) | |
download | ranger-e124e26958ad9db38ef836a129fab09fc9b2268a.tar.gz |
settings: fix maximum line width
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/container/settings.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ranger/container/settings.py b/ranger/container/settings.py index 54cbeee6..4a68d516 100644 --- a/ranger/container/settings.py +++ b/ranger/container/settings.py @@ -111,7 +111,8 @@ class Settings(SignalDispatcher, FileManagerAware): else: previous=self._settings[name] assert self._check_type(name, value) - kws = dict(setting=name, value=value, previous=previous, path=path, fm=self.fm) + kws = dict(setting=name, value=value, previous=previous, + path=path, fm=self.fm) self.signal_emit('setopt', **kws) self.signal_emit('setopt.'+name, **kws) @@ -122,7 +123,8 @@ class Settings(SignalDispatcher, FileManagerAware): path = self.fm.thisdir.path except: pass - if path and path in self._localsettings and name in self._localsettings[path]: + if path and path in self._localsettings and \ + name in self._localsettings[path]: return self._localsettings[path][name] elif name in self._settings: return self._settings[name] @@ -184,7 +186,8 @@ class Settings(SignalDispatcher, FileManagerAware): self._localsettings[path] = dict() self._localsettings[path][name] = value - # make sure name is in _settings, so __iter__ runs through local settigns too. + # make sure name is in _settings, so __iter__ runs through + # local settings too. if not name in self._settings: type_ = self.types_of(name)[0] value = DEFAULT_VALUES[type_] |