Output.get_position() should return None if position is unknown

This commit is contained in:
Stein Magnus Jodal 2010-11-03 23:33:10 +01:00
parent be225c23f1
commit 52cdaa9d4f
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ class BaseOutput(object):
*MUST be implemented by subclass.*
:rtype: int
:rtype: int or :class:`None` if unknown
"""
raise NotImplementedError

View File

@ -32,7 +32,7 @@ class DummyOutput(BaseOutput):
end_of_data_stream_called = False
#: For testing. Contains the current position.
position = 0
position = None
#: For testing. Contains the current state.
state = 'NULL'