From ee5ab1813b85172beb362e88f2ad41c8a52b2c37 Mon Sep 17 00:00:00 2001 From: Andy Port Date: Tue, 21 Aug 2018 20:07:53 -0700 Subject: [PATCH] updated for python3 compatibility --- examples/compute-many-points-quickly-using-numpy-arrays.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/compute-many-points-quickly-using-numpy-arrays.py b/examples/compute-many-points-quickly-using-numpy-arrays.py index c6b7b78..1ad48c6 100644 --- a/examples/compute-many-points-quickly-using-numpy-arrays.py +++ b/examples/compute-many-points-quickly-using-numpy-arrays.py @@ -6,7 +6,7 @@ easily be generalized to paths containing `Line` and `QuadraticBezier` objects also. Note: The relevant matrix transformation for quadratics can be found in the svgpathtools.bezier module.""" - +from __future__ import print_function import numpy as np from svgpathtools import * @@ -53,4 +53,4 @@ if __name__ == '__main__': pts = points_in_each_seg(testpath, tvals) pts_check = points_in_each_seg_slow(testpath, tvals) - print np.max(pts - pts_check) + print(np.max(pts - pts_check))