Output.get_position() should return None if position is unknown
This commit is contained in:
parent
be225c23f1
commit
52cdaa9d4f
@ -67,7 +67,7 @@ class BaseOutput(object):
|
|||||||
|
|
||||||
*MUST be implemented by subclass.*
|
*MUST be implemented by subclass.*
|
||||||
|
|
||||||
:rtype: int
|
:rtype: int or :class:`None` if unknown
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|||||||
@ -32,7 +32,7 @@ class DummyOutput(BaseOutput):
|
|||||||
end_of_data_stream_called = False
|
end_of_data_stream_called = False
|
||||||
|
|
||||||
#: For testing. Contains the current position.
|
#: For testing. Contains the current position.
|
||||||
position = 0
|
position = None
|
||||||
|
|
||||||
#: For testing. Contains the current state.
|
#: For testing. Contains the current state.
|
||||||
state = 'NULL'
|
state = 'NULL'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user