changeset 47:a92dfdc1c612

'is None' instead of '== None'
author Amine SEHILI <amine.sehili@gmail.com>
date Sun, 06 Mar 2016 14:54:52 +0100
parents cda20ce8d268
children 117856eabb9e
files auditok/core.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)