Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 30, 2024
1 parent 0de4aab commit ead999f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions cssutils/css/cssnamespacerule.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ def __repr__(self):
return f"cssutils.css.{self.__class__.__name__}(namespaceURI={self.namespaceURI!r}, prefix={self.prefix!r})"

def __str__(self):
return (
f"<cssutils.css.{self.__class__.__name__} object namespaceURI={self.namespaceURI!r} prefix={self.prefix!r} at 0x{id(self):x}>"
)
return f"<cssutils.css.{self.__class__.__name__} object namespaceURI={self.namespaceURI!r} prefix={self.prefix!r} at 0x{id(self):x}>"

def _getCssText(self):
"""Return serialized property cssText"""
Expand Down
4 changes: 1 addition & 3 deletions cssutils/css/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,7 @@ def __repr__(self):
return f"cssutils.css.{self.__class__.__name__}({self.cssText!r})"

def __str__(self):
return (
f"<cssutils.css.{self.__class__.__name__} object type={self.type} value={self.value!r} cssText={self.cssText!r} at 0x{id(self):x}>"
)
return f"<cssutils.css.{self.__class__.__name__} object type={self.type} value={self.value!r} cssText={self.cssText!r} at 0x{id(self):x}>"

def _setCssText(self, cssText):
self._checkReadonly()
Expand Down
2 changes: 1 addition & 1 deletion cssutils/tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def test_escapes(self):
sheet = cssutils.parseString(css)
assert (
sheet.cssText
== br'''C\x {
== rb'''C\x {
c\x: C\x !important
}'''
)
Expand Down

0 comments on commit ead999f

Please sign in to comment.