# HG changeset patch # User Amine SEHILI # Date 1457272492 -3600 # Node ID a92dfdc1c6125853118a2d100571bbea59a11f4d # Parent cda20ce8d268959e3cac688aec297bc2b227f357 'is None' instead of '== None' diff -r cda20ce8d268 -r a92dfdc1c612 auditok/core.py --- a/auditok/core.py Sun Mar 06 14:51:46 2016 +0100 +++ b/auditok/core.py Sun Mar 06 14:54:52 2016 +0100 @@ -274,7 +274,7 @@ order to detect sequences of frames that make up valid tokens. :Parameters: - `data_source` : instance of the `DataSource` class that implements a 'read' method. + `data_source` : instance of the :class:`DataSource` class that implements a `read` method. 'read' should return a slice of signal, i.e. frame (of whatever \ type as long as it can be processed by validator) and None if \ there is no more signal. @@ -303,7 +303,7 @@ while True: frame = data_source.read() - if frame == None: + if frame is None: break self._current_frame += 1 self._process(frame)