From 74032e02ea8de8c80e79edb6154547d8a8fbee91 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Tue, 9 Apr 2013 00:23:37 +0200 Subject: [PATCH] docs: Check for 'MIXER_TRACK_' to not confuse with old 'MIXER_TRACK' setting --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 7f111014..1e9f9cb2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -32,7 +32,8 @@ class Mock(object): def __getattr__(self, name): if name in ('__file__', '__path__'): return '/dev/null' - elif name[0] == name[0].upper() and not name.startswith('MIXER_TRACK'): + elif (name[0] == name[0].upper() + and not name.startswith('MIXER_TRACK_')): return type(name, (), {}) else: return Mock()