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']
|
__all__ = ['BaseAudio', 'ICapAudio']
|
||||||
|
|
||||||
|
|
||||||
class BaseAudio(BaseFile):
|
class BaseAudio(BaseFile):
|
||||||
"""
|
"""
|
||||||
Represent an audio file
|
Represent an audio file
|
||||||
|
|
@ -35,6 +36,7 @@ class BaseAudio(BaseFile):
|
||||||
bitrate = Field('Audio stream bit rate un Kbps', int)
|
bitrate = Field('Audio stream bit rate un Kbps', int)
|
||||||
format = StringField('Audio stream format')
|
format = StringField('Audio stream format')
|
||||||
|
|
||||||
|
|
||||||
class ICapAudio(ICapFile):
|
class ICapAudio(ICapFile):
|
||||||
"""
|
"""
|
||||||
Audio file provider
|
Audio file provider
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ from .audio import ICapAudio, BaseAudio
|
||||||
|
|
||||||
__all__ = ['AudioStreamInfo', 'BaseAudioStream', 'ICapAudioStream']
|
__all__ = ['AudioStreamInfo', 'BaseAudioStream', 'ICapAudioStream']
|
||||||
|
|
||||||
|
|
||||||
class AudioStreamInfo(CapBaseObject):
|
class AudioStreamInfo(CapBaseObject):
|
||||||
"""
|
"""
|
||||||
AudioStream related information.
|
AudioStream related information.
|
||||||
|
|
@ -57,6 +58,7 @@ class BaseAudioStream(BaseAudio):
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return self.__unicode__()
|
return self.__unicode__()
|
||||||
|
|
||||||
|
|
||||||
class ICapAudioStream(ICapAudio):
|
class ICapAudioStream(ICapAudio):
|
||||||
"""
|
"""
|
||||||
Audio streams provider
|
Audio streams provider
|
||||||
|
|
@ -81,4 +83,3 @@ class ICapAudioStream(ICapAudio):
|
||||||
:rtype: :class:`BaseAudioStream`
|
:rtype: :class:`BaseAudioStream`
|
||||||
"""
|
"""
|
||||||
return self.get_audio(self, id)
|
return self.get_audio(self, id)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ from .base import IBaseCap, CapBaseObject, NotAvailable, Field, StringField, Dat
|
||||||
|
|
||||||
__all__ = ['BaseFile', 'ICapFile']
|
__all__ = ['BaseFile', 'ICapFile']
|
||||||
|
|
||||||
|
|
||||||
class BaseFile(CapBaseObject):
|
class BaseFile(CapBaseObject):
|
||||||
"""
|
"""
|
||||||
Represent a file.
|
Represent a file.
|
||||||
|
|
@ -49,6 +50,7 @@ class BaseFile(CapBaseObject):
|
||||||
"""
|
"""
|
||||||
return self.id2url(self.id)
|
return self.id2url(self.id)
|
||||||
|
|
||||||
|
|
||||||
class ICapFile(IBaseCap):
|
class ICapFile(IBaseCap):
|
||||||
"""
|
"""
|
||||||
Provide file download
|
Provide file download
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue