[Scipy-svn] r6784 - trunk/scipy/io/arff
scipy-svn at scipy.org
scipy-svn at scipy.org
Sun Sep 12 13:21:25 EDT 2010
Author: ptvirtan
Date: 2010-09-12 12:21:25 -0500 (Sun, 12 Sep 2010)
New Revision: 6784
Modified:
trunk/scipy/io/arff/arffread.py
Log:
3K: io/arff: port arff to Py3
Modified: trunk/scipy/io/arff/arffread.py
===================================================================
--- trunk/scipy/io/arff/arffread.py 2010-09-12 17:21:12 UTC (rev 6783)
+++ trunk/scipy/io/arff/arffread.py 2010-09-12 17:21:25 UTC (rev 6784)
@@ -219,21 +219,21 @@
atrv = mattr.group(1)
if r_comattrval.match(atrv):
name, type = tokenize_single_comma(atrv)
- next = iterable.next()
+ next_item = iterable.next()
elif r_wcomattrval.match(atrv):
name, type = tokenize_single_wcomma(atrv)
- next = iterable.next()
+ next_item = iterable.next()
else:
# Not sure we should support this, as it does not seem supported by
# weka.
raise ValueError("multi line not supported yet")
- #name, type, next = tokenize_multilines(iterable, atrv)
+ #name, type, next_item = tokenize_multilines(iterable, atrv)
else:
raise ValueError("First line unparsable: %s" % sattr)
if type == 'relational':
raise ValueError("relational attributes not supported yet")
- return name, type, next
+ return name, type, next_item
def tokenize_multilines(iterable, val):
More information about the Scipy-svn
mailing list