MCPcopy Create free account
hub / github.com/PageBot/PageBot / removeStyle

Method removeStyle

Lib/pagebot/document.py:515–518  ·  view source on GitHub ↗

Removes the style *name* if it exists. Raises an error if is does not exist.

(self, name)

Source from the content-addressed store, hash-verified

513 self.replaceStyle(name, style)
514
515 def removeStyle(self, name):
516 """Removes the style *name* if it exists. Raises an error if is does not
517 exist."""
518 del self.styles[name]
519
520 def replaceStyle(self, name, style):
521 """Set the style by name. Overwrite the style with that name if it

Callers 1

addStyleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected