Skip to content

Commit

Permalink
Revert "Contour: renamed 'open' method to 'closed'"
Browse files Browse the repository at this point in the history
This reverts commit 262129e.

Defcon has the same method, keep it for now for compatibility.
  • Loading branch information
madig committed Dec 17, 2018
1 parent 08dbb02 commit 18d6d28
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ufoLib2/objects/contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ def insert(self, index, point):
raise TypeError("expected Point, found %s" % type(point).__name__)
self.points.insert(index, point)

# TODO: rotate method?

@property
def closed(self):
def open(self):
if not self.points:
return False
return self.points[0].type != "move"
return True
return self.points[0].type == "move"

# -----------
# Pen methods
Expand Down

0 comments on commit 18d6d28

Please sign in to comment.