diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2016-12-16 16:02:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-16 16:02:14 +0000 |
commit | a2e3fb3a164766a9356e5082561acecccca1dbf5 (patch) | |
tree | fff0d2eb2a6999e3e7e974a148fdbdb7c1d4f833 | |
parent | 40c08dd469a3ff22ed88e0347f8ac289d636283d (diff) | |
parent | d580d73be57d3cbe46be874c9d9e0219af70eab2 (diff) |
Merge pull request #927 from pazz/cleanup
small fixes suggested by quantifiedcode
-rw-r--r-- | docs/source/api/conf.py | 2 | ||||
-rw-r--r-- | docs/source/conf.py | 2 | ||||
-rwxr-xr-x | extra/theme_convert.py | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/docs/source/api/conf.py b/docs/source/api/conf.py index 0c36a73f..348a8b6e 100644 --- a/docs/source/api/conf.py +++ b/docs/source/api/conf.py @@ -26,7 +26,7 @@ class Mock(object): return Mock() @classmethod - def __getattr__(self, name): + def __getattr__(cls, name): return Mock() if name not in ('__file__', '__path__') else '/dev/null' MOCK_MODULES = ['notmuch', 'notmuch.globals', diff --git a/docs/source/conf.py b/docs/source/conf.py index 2b544f23..a2751b70 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,7 +16,7 @@ class Mock(object): return Mock() @classmethod - def __getattr__(self, name): + def __getattr__(cls, name): return Mock() if name not in ('__file__', '__path__') else '/dev/null' class MockModule(object): diff --git a/extra/theme_convert.py b/extra/theme_convert.py index 20113be0..9a70a1cc 100755 --- a/extra/theme_convert.py +++ b/extra/theme_convert.py @@ -51,8 +51,6 @@ if __name__ == "__main__": values.append(get_leaf_value(old, [c] + path + ['fg']) or 'default') values.append(get_leaf_value(old, [c] + path + ['bg']) or 'default') return values - values = map(lambda s: '\'' + s + '\'', values) - return ','.join(values) for bmode in ['global', 'help', 'envelope']: new[bmode] = {} |