Fix python 3 incompatibility with Path.intersect() method

pull/5/head
Andy 2016-10-16 00:20:52 -07:00
parent 7ee94e9eef
commit 6be04c6750
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
from distutils.core import setup
VERSION = '1.2.2'
VERSION = '1.2.3'
AUTHOR_NAME = 'Andy Port'
AUTHOR_EMAIL = 'AndyAPort@gmail.com'

View File

@ -2099,7 +2099,7 @@ class Path(MutableSequence):
# redundant intersection. This code block checks for and removes said
# redundancies.
if intersection_list:
pts = [seg1.point(_t1) for _T1, _seg1, _t1 in zip(*intersection_list)[0]]
pts = [seg1.point(_t1) for _T1, _seg1, _t1 in list(zip(*intersection_list))[0]]
indices2remove = []
for ind1 in range(len(pts)):
for ind2 in range(ind1 + 1, len(pts)):