(self, node=None)
return dup
Create a duplicate of this style declaration.
Create a duplicate of this style declaration.
Create a duplicate of this style declaration .
def copy(self, node=None):
        "Create a duplicate of this style declaration."
        dup = CSS()
        dup._node = node
        for style in _CSS_PROPERTIES:
            try:
                setattr(dup, style, getattr(self, '_%s' % style))
            except AttributeError:
                pass
        return dup
def copy ( self , node = None ) : dup = CSS ( ) dup . _node = node for style in _CSS_PROPERTIES : try : setattr ( dup , style , getattr ( self , '_%s' % style ) ) except AttributeError : pass return dup