Skip to content

Commit

Permalink
Fix failing doctests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 9, 2023
1 parent 34e0512 commit c9129a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def work_and_build():
True
>>> # returns the new Selector:
>>> sheet.cssRules[1].selectorList.appendSelector('a')
cssutils.css.Selector(selectorText=u'a')
cssutils.css.Selector(selectorText='a')
>>> print(sheet.cssText.decode())
@import url(example.css) tv, print;
body, a {
Expand All @@ -139,7 +139,7 @@ def api_addons():
>>> # work with properties:
>>> proplist = style.getProperties('background', all=True)
>>> proplist
[cssutils.css.Property(name='background', value=u'white url(paper.png) scroll', priority=u''), cssutils.css.Property(name='background', value=u'white url(ledger.png) fixed', priority=u'')]
[cssutils.css.Property(name='background', value='white url(paper.png) scroll', priority=''), cssutils.css.Property(name='background', value='white url(ledger.png) fixed', priority='')]
>>> for prop in proplist: print(prop.value)
white url(paper.png) scroll
white url(ledger.png) fixed
Expand Down

0 comments on commit c9129a0

Please sign in to comment.