Skip to content

Commit b71fc01

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent a4f914d commit b71fc01

23 files changed

Lines changed: 60 additions & 64 deletions

‎cssutils/css/csscharsetrule.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _setEncoding(self, encoding):
147147
or self._prods.IDENT != self._type(encodingtoken)
148148
):
149149
self._log.error(
150-
'CSSCharsetRule: Syntax Error in encoding value ' '%r.' % encoding
150+
'CSSCharsetRule: Syntax Error in encoding value %r.' % encoding
151151
)
152152
else:
153153
try:
@@ -167,7 +167,7 @@ def _setEncoding(self, encoding):
167167

168168
type = property(
169169
lambda self: self.CHARSET_RULE,
170-
doc="The type of this rule, as defined by a CSSRule " "type constant.",
170+
doc="The type of this rule, as defined by a CSSRule type constant.",
171171
)
172172

173173
wellformed = property(lambda self: bool(self.encoding))

‎cssutils/css/csscomment.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def _setCssText(self, cssText):
8585

8686
type = property(
8787
lambda self: self.COMMENT,
88-
doc="The type of this rule, as defined by a CSSRule " "type constant.",
88+
doc="The type of this rule, as defined by a CSSRule type constant.",
8989
)
9090

9191
# constant but needed:

‎cssutils/css/cssfontfacerule.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def _setCssText(self, cssText):
149149
cssText = property(
150150
_getCssText,
151151
_setCssText,
152-
doc="(DOM) The parsable textual representation of this " "rule.",
152+
doc="(DOM) The parsable textual representation of this rule.",
153153
)
154154

155155
def _setStyle(self, style):
@@ -173,7 +173,7 @@ def _setStyle(self, style):
173173

174174
type = property(
175175
lambda self: self.FONT_FACE_RULE,
176-
doc="The type of this rule, as defined by a CSSRule " "type constant.",
176+
doc="The type of this rule, as defined by a CSSRule type constant.",
177177
)
178178

179179
def _getValid(self):

‎cssutils/css/cssimportrule.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,12 +410,12 @@ def _getName(self):
410410

411411
styleSheet = property(
412412
lambda self: self._styleSheet,
413-
doc="(readonly) The style sheet referred to by this " "rule.",
413+
doc="(readonly) The style sheet referred to by this rule.",
414414
)
415415

416416
type = property(
417417
lambda self: self.IMPORT_RULE,
418-
doc="The type of this rule, as defined by a CSSRule " "type constant.",
418+
doc="The type of this rule, as defined by a CSSRule type constant.",
419419
)
420420

421421
def _getWellformed(self):

‎cssutils/css/cssmediarule.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def atrule(expected, seq, token, tokenizer):
254254
cssText = property(
255255
_getCssText,
256256
_setCssText,
257-
doc="(DOM) The parsable textual representation of this " "rule.",
257+
doc="(DOM) The parsable textual representation of this rule.",
258258
)
259259

260260
@property
@@ -336,7 +336,7 @@ def insertRule(self, rule, index=None):
336336

337337
type = property(
338338
lambda self: self.MEDIA_RULE,
339-
doc="The type of this rule, as defined by a CSSRule " "type constant.",
339+
doc="The type of this rule, as defined by a CSSRule type constant.",
340340
)
341341

342342
wellformed = property(lambda self: self.media.wellformed)

‎cssutils/css/cssnamespacerule.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def _char(expected, seq, token, tokenizer=None):
221221
cssText = property(
222222
fget=_getCssText,
223223
fset=_setCssText,
224-
doc="(DOM) The parsable textual representation of this " "rule.",
224+
doc="(DOM) The parsable textual representation of this rule.",
225225
)
226226

227227
def _setNamespaceURI(self, namespaceURI):
@@ -308,7 +308,7 @@ def _setPrefix(self, prefix=None):
308308

309309
type = property(
310310
lambda self: self.NAMESPACE_RULE,
311-
doc="The type of this rule, as defined by a CSSRule " "type constant.",
311+
doc="The type of this rule, as defined by a CSSRule type constant.",
312312
)
313313

314314
wellformed = property(lambda self: self.namespaceURI is not None)

‎cssutils/css/csspagerule.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def IDENT(expected, seq, token, tokenizer=None):
215215
else:
216216
new['wellformed'] = False
217217
self._log.error(
218-
'CSSPageRule selectorText: Unexpected IDENT: ' '%r' % val, token
218+
'CSSPageRule selectorText: Unexpected IDENT: %r' % val, token
219219
)
220220
return expected
221221

@@ -456,7 +456,7 @@ def insertRule(self, rule, index=None):
456456

457457
type = property(
458458
lambda self: self.PAGE_RULE,
459-
doc="The type of this rule, as defined by a CSSRule " "type constant.",
459+
doc="The type of this rule, as defined by a CSSRule type constant.",
460460
)
461461

462462
# constant but needed:

‎cssutils/css/cssrule.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def _getParentStyleSheet(self):
143143

144144
type = property(
145145
lambda self: self.UNKNOWN_RULE,
146-
doc="The type of this rule, as defined by a CSSRule " "type constant.",
146+
doc="The type of this rule, as defined by a CSSRule type constant.",
147147
)
148148

149149
typeString = property(
@@ -185,7 +185,7 @@ def _setCssRules(self, cssRules):
185185
cssRules = property(
186186
lambda self: self._cssRules,
187187
_setCssRules,
188-
"All Rules in this style sheet, a " ":class:`~cssutils.css.CSSRuleList`.",
188+
"All Rules in this style sheet, a :class:`~cssutils.css.CSSRuleList`.",
189189
)
190190

191191
def deleteRule(self, index):

‎cssutils/css/cssstyledeclaration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def unexpected(expected, seq, token, tokenizer=None):
323323
self._tokensupto2(tokenizer, propertyvalueendonly=True)
324324
)
325325
self._log.error(
326-
'CSSStyleDeclaration: Unexpected token, ignoring ' 'upto %r.' % ignored,
326+
'CSSStyleDeclaration: Unexpected token, ignoring upto %r.' % ignored,
327327
token,
328328
)
329329
# does not matter in this case

‎cssutils/css/cssstylerule.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def _setCssText(self, cssText): # noqa: C901
179179
cssText = property(
180180
_getCssText,
181181
_setCssText,
182-
doc="(DOM) The parsable textual representation of this " "rule.",
182+
doc="(DOM) The parsable textual representation of this rule.",
183183
)
184184

185185
def __getNamespaces(self):
@@ -241,7 +241,7 @@ def _setSelectorText(self, selectorText):
241241
selectorText = property(
242242
lambda self: self._selectorList.selectorText,
243243
_setSelectorText,
244-
doc="(DOM) The textual representation of the " "selector for the rule set.",
244+
doc="(DOM) The textual representation of the selector for the rule set.",
245245
)
246246

247247
def _setStyle(self, style):
@@ -264,7 +264,7 @@ def _setStyle(self, style):
264264

265265
type = property(
266266
lambda self: self.STYLE_RULE,
267-
doc="The type of this rule, as defined by a CSSRule " "type constant.",
267+
doc="The type of this rule, as defined by a CSSRule type constant.",
268268
)
269269

270270
wellformed = property(lambda self: self.selectorList.wellformed)

0 commit comments

Comments
 (0)