Skip to content

Commit

Permalink
Merge pull request #11 from fonttools/fix-attrs-depr-warnings
Browse files Browse the repository at this point in the history
Fix attrs' DeprecationWarnings
  • Loading branch information
madig authored Dec 19, 2018
2 parents 18d6d28 + 3c4bbac commit 6bd04d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ufoLib2/objects/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Component(object):
baseGlyph = attr.ib(type=str)
transformation = attr.ib(
default=Identity,
convert=lambda t: t if isinstance(t, Transform) else Transform(*t),
converter=lambda t: t if isinstance(t, Transform) else Transform(*t),
type=Transform,
)
identifier = attr.ib(default=None, type=Optional[str])
Expand Down
2 changes: 1 addition & 1 deletion src/ufoLib2/objects/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Image(Mapping):
fileName = attr.ib(default=None, type=Optional[str])
transformation = attr.ib(
default=Identity,
convert=lambda t: t if isinstance(t, Transform) else Transform(*t),
converter=lambda t: t if isinstance(t, Transform) else Transform(*t),
type=Transform,
)
color = attr.ib(default=None, type=Optional[str])
Expand Down

0 comments on commit 6bd04d3

Please sign in to comment.