diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-08-25 10:45:55 +0100 |
commit | 3cf7c3ef441822c889356fd1812ebf2944a59851 (patch) | |
tree | c513fe68548b40365c1c2ebfe35c58ad431cdd77 /dev-ros/geodesy/files | |
parent | 05b8b0e0af1d72e51a3ee61522941bf7605cd01c (diff) |
gentoo resync : 25.08.2020
Diffstat (limited to 'dev-ros/geodesy/files')
-rw-r--r-- | dev-ros/geodesy/files/py3.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-ros/geodesy/files/py3.patch b/dev-ros/geodesy/files/py3.patch new file mode 100644 index 000000000000..08259ee976c1 --- /dev/null +++ b/dev-ros/geodesy/files/py3.patch @@ -0,0 +1,41 @@ +Index: geodesy/src/geodesy/wu_point.py +=================================================================== +--- geodesy.orig/src/geodesy/wu_point.py ++++ geodesy/src/geodesy/wu_point.py +@@ -159,12 +159,12 @@ class WuPointSet(): + # Initialize way point information. + self.way_point_ids = {} # points symbol table + self.n_points = len(self.points) +- for wid in xrange(self.n_points): ++ for wid in range(self.n_points): + self.way_point_ids[self.points[wid].id.uuid] = wid + + # Create empty list of UTM points, corresponding to map points. + # They will be evaluated lazily, when first needed. +- self.utm_points = [None for wid in xrange(self.n_points)] ++ self.utm_points = [None for wid in range(self.n_points)] + + def __contains__(self, item): + """ Point set membership. """ +@@ -259,7 +259,7 @@ class WuPointSet(): + """ + return self.way_point_ids.get(key, default) + +- def next(self): ++ def __next__(self): + """ Next iteration point. + + :returns: Next :class:`WuPoint`. +Index: geodesy/tests/test_wu_point.py +=================================================================== +--- geodesy.orig/tests/test_wu_point.py ++++ geodesy/tests/test_wu_point.py +@@ -127,7 +127,7 @@ class TestWuPoint(unittest.TestCase): + self.assertEqual(wupts.get(uu).uuid(), uu) + + # test index() function +- for i in xrange(len(uuids)): ++ for i in range(len(uuids)): + self.assertEqual(wupts.index(uuids[i]), i) + self.assertEqual(wupts.points[i].id.uuid, uuids[i]) + |