Skip to content

Commit

Permalink
Fixed error TypeError: 'map' object is not subscriptable
Browse files Browse the repository at this point in the history
  • Loading branch information
tpaviot committed Oct 29, 2014
1 parent 3226991 commit 38f7625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.py
Expand Up @@ -765,7 +765,7 @@ def finish_wire():
del local_wire[:]

def strpt_to_float(strpt):
pt = map(lambda x: float(x), strpt.split(','))
pt = list(map(lambda x: float(x), strpt.split(',')))
if not absolute:
pt = (pt0[0] + pt[0], pt0[1] + pt[1]) # Make absolute
return (pt[0], pt[1])
Expand Down

0 comments on commit 38f7625

Please sign in to comment.