Merge pull request #63 from anthrotype/pointpen-identifier

[pointPen] add identifier=None argument to AbstractPointPen methods
This commit is contained in:
Cosimo Lupo 2017-02-27 16:55:26 +00:00 committed by GitHub
commit 57682a8b17

View File

@ -23,7 +23,7 @@ class AbstractPointPen(object):
Baseclass for all PointPens. Baseclass for all PointPens.
""" """
def beginPath(self): def beginPath(self, identifier=None, **kwargs):
"""Start a new sub path.""" """Start a new sub path."""
raise NotImplementedError raise NotImplementedError
@ -31,11 +31,13 @@ class AbstractPointPen(object):
"""End the current sub path.""" """End the current sub path."""
raise NotImplementedError raise NotImplementedError
def addPoint(self, pt, segmentType=None, smooth=False, name=None, **kwargs): def addPoint(self, pt, segmentType=None, smooth=False, name=None,
identifier=None, **kwargs):
"""Add a point to the current sub path.""" """Add a point to the current sub path."""
raise NotImplementedError raise NotImplementedError
def addComponent(self, baseGlyphName, transformation): def addComponent(self, baseGlyphName, transformation, identifier=None,
**kwargs):
"""Add a sub glyph.""" """Add a sub glyph."""
raise NotImplementedError raise NotImplementedError