Skip to content

Commit ead999f

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent 0de4aab commit ead999f

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

‎cssutils/css/cssnamespacerule.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ def __repr__(self):
9292
return f"cssutils.css.{self.__class__.__name__}(namespaceURI={self.namespaceURI!r}, prefix={self.prefix!r})"
9393

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

9997
def _getCssText(self):
10098
"""Return serialized property cssText"""

‎cssutils/css/value.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ def __repr__(self):
258258
return f"cssutils.css.{self.__class__.__name__}({self.cssText!r})"
259259

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

265263
def _setCssText(self, cssText):
266264
self._checkReadonly()

‎cssutils/tests/test_parse.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def test_escapes(self):
423423
sheet = cssutils.parseString(css)
424424
assert (
425425
sheet.cssText
426-
== br'''C\x {
426+
== rb'''C\x {
427427
c\x: C\x !important
428428
}'''
429429
)

0 commit comments

Comments
 (0)