minor docstring improvements

ElementTree
Andy Port 2018-05-28 19:48:48 -07:00
parent 30d511577b
commit f966999bc5
1 changed files with 4 additions and 3 deletions

View File

@ -45,8 +45,8 @@ def ellipse2pathd(ellipse):
def polyline2pathd(polyline_d, is_polygon=False):
"""converts the string from a polyline points-attribute to a string for a
Path object d-attribute"""
"""converts the string from a polyline points-attribute to a string
for a Path object d-attribute"""
points = COORD_PAIR_TMPLT.findall(polyline_d)
closed = (float(points[0][0]) == float(points[-1][0]) and
float(points[0][1]) == float(points[-1][1]))
@ -67,7 +67,8 @@ def polygon2pathd(polyline_d):
"""converts the string from a polygon points-attribute to a string
for a Path object d-attribute.
Note: For a polygon made from n points, the resulting path will be
composed of n lines (even if some of these lines have length zero)."""
composed of n lines (even if some of these lines have length zero).
"""
return polyline2pathd(polyline_d, True)