changeset 88:596dac7f3e98

py3 compat
author Jeff Hammel <k0scist@gmail.com>
date Sun, 17 Dec 2017 14:08:48 -0800
parents 9d5a5e9f5c3b
children 800f3938ebaa
files tests/test_kmeans.py tvii/dataset/circle.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_kmeans.py	Sun Dec 17 14:05:57 2017 -0800
+++ b/tests/test_kmeans.py	Sun Dec 17 14:08:48 2017 -0800
@@ -6,7 +6,7 @@
 
 import unittest
 from tvii import kmeans
-from nettwerk.dataset.circle import CircularRandom
+from tvii.dataset.circle import CircularRandom
 
 
 class TestKMeans(unittest.TestCase):
--- a/tvii/dataset/circle.py	Sun Dec 17 14:05:57 2017 -0800
+++ b/tvii/dataset/circle.py	Sun Dec 17 14:08:48 2017 -0800
@@ -27,7 +27,7 @@
     def __call__(self, n_points):
         """samples `n_points`"""
 
-        return [self.point() for _ in xrange(n_points)]
+        return [self.point() for _ in range(n_points)]
 
     def point(self):
         """samples a single point"""