docs: Fix broken autodocs

This commit is contained in:
Stein Magnus Jodal 2012-09-14 01:43:45 +02:00
parent 6d93938745
commit 25b14cbfb3

View File

@ -29,6 +29,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'):
return type(name, (), {})
else:
return Mock()