Pep8 Capa
This commit is contained in:
parent
b965e8222c
commit
d23d9672c6
3 changed files with 18 additions and 13 deletions
|
|
@ -26,6 +26,7 @@ from .file import ICapFile, BaseFile
|
|||
|
||||
__all__ = ['BaseAudio', 'ICapAudio']
|
||||
|
||||
|
||||
class BaseAudio(BaseFile):
|
||||
"""
|
||||
Represent an audio file
|
||||
|
|
@ -35,6 +36,7 @@ class BaseAudio(BaseFile):
|
|||
bitrate = Field('Audio stream bit rate un Kbps', int)
|
||||
format = StringField('Audio stream format')
|
||||
|
||||
|
||||
class ICapAudio(ICapFile):
|
||||
"""
|
||||
Audio file provider
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ from .audio import ICapAudio, BaseAudio
|
|||
|
||||
__all__ = ['AudioStreamInfo', 'BaseAudioStream', 'ICapAudioStream']
|
||||
|
||||
|
||||
class AudioStreamInfo(CapBaseObject):
|
||||
"""
|
||||
AudioStream related information.
|
||||
|
|
@ -57,6 +58,7 @@ class BaseAudioStream(BaseAudio):
|
|||
def __repr__(self):
|
||||
return self.__unicode__()
|
||||
|
||||
|
||||
class ICapAudioStream(ICapAudio):
|
||||
"""
|
||||
Audio streams provider
|
||||
|
|
@ -81,4 +83,3 @@ class ICapAudioStream(ICapAudio):
|
|||
:rtype: :class:`BaseAudioStream`
|
||||
"""
|
||||
return self.get_audio(self, id)
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ from .base import IBaseCap, CapBaseObject, NotAvailable, Field, StringField, Dat
|
|||
|
||||
__all__ = ['BaseFile', 'ICapFile']
|
||||
|
||||
|
||||
class BaseFile(CapBaseObject):
|
||||
"""
|
||||
Represent a file.
|
||||
|
|
@ -49,6 +50,7 @@ class BaseFile(CapBaseObject):
|
|||
"""
|
||||
return self.id2url(self.id)
|
||||
|
||||
|
||||
class ICapFile(IBaseCap):
|
||||
"""
|
||||
Provide file download
|
||||
|
|
|
|||
Loading…
Reference in a new issue