Mercurial > pylearn
diff dataset.py @ 123:8b520423d4ee
bugfix
author | Frederic Bastien <bastienf@iro.umontreal.ca> |
---|---|
date | Wed, 07 May 2008 16:17:25 -0400 |
parents | 8fa1ef2411a0 |
children | 7d8b3d6dd4e9 |
line wrap: on
line diff
--- a/dataset.py Wed May 07 16:17:06 2008 -0400 +++ b/dataset.py Wed May 07 16:17:25 2008 -0400 @@ -355,13 +355,13 @@ Sub-classes which implement finite-length datasets should redefine this method. Some methods only make sense for finite-length datasets. """ - return sys.maxint + return maxint def is_unbounded(self): """ Tests whether a dataset is unbounded (e.g. a stream). """ - return len(self)==sys.maxint + return len(self)==maxint def hasFields(self,*fieldnames): """