1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00

Update StyleDict.copy's description

This commit is contained in:
Guillaume Ayoub 2017-07-30 14:00:33 +02:00
parent 9c3c750e09
commit 7abfcb9e75

View File

@ -85,12 +85,11 @@ class StyleDict(dict):
value = self[key]
return value if value != 'currentColor' else self['color']
def copy(self, update=None):
"""Copy the ``StyleDict``."""
def copy(self, update):
"""Copy the ``StyleDict`` with updated values."""
style = type(self)(self)
style.update(update)
style.anonymous = self.anonymous
if update:
style.update(update)
return style
def inherit_from(self):