@@ -48,7 +48,7 @@ class Node:
48
48
.. automethod:: serialize
49
49
50
50
"""
51
- __slots__ = ['source_line ' , 'source_column ' ]
51
+ __slots__ = ['source_column ' , 'source_line ' ]
52
52
53
53
def __init__ (self , source_line , source_column ):
54
54
self .source_line = source_line
@@ -234,7 +234,7 @@ class IdentToken(Node):
234
234
This is the value to use when comparing to a CSS keyword.
235
235
236
236
"""
237
- __slots__ = ['value ' , 'lower_value ' ]
237
+ __slots__ = ['lower_value ' , 'value ' ]
238
238
type = 'ident'
239
239
repr_format = '<{self.__class__.__name__} {self.value}>'
240
240
@@ -274,7 +274,7 @@ class AtKeywordToken(Node):
274
274
if node.type == 'at-keyword' and node.lower_value == 'import':
275
275
276
276
"""
277
- __slots__ = ['value ' , 'lower_value ' ]
277
+ __slots__ = ['lower_value ' , 'value ' ]
278
278
type = 'at-keyword'
279
279
repr_format = '<{self.__class__.__name__} @{self.value}>'
280
280
@@ -311,7 +311,7 @@ class HashToken(Node):
311
311
(Only such hash tokens are valid ID selectors.)
312
312
313
313
"""
314
- __slots__ = ['value ' , 'is_identifier ' ]
314
+ __slots__ = ['is_identifier ' , 'value ' ]
315
315
type = 'hash'
316
316
repr_format = '<{self.__class__.__name__} #{self.value}>'
317
317
@@ -342,7 +342,7 @@ class StringToken(Node):
342
342
The unescaped value, as a Unicode string, without the quotes.
343
343
344
344
"""
345
- __slots__ = ['value ' , 'representation ' ]
345
+ __slots__ = ['representation ' , 'value ' ]
346
346
type = 'string'
347
347
repr_format = '<{self.__class__.__name__} {self.representation}>'
348
348
@@ -370,7 +370,7 @@ class URLToken(Node):
370
370
markers.
371
371
372
372
"""
373
- __slots__ = ['value ' , 'representation ' ]
373
+ __slots__ = ['representation ' , 'value ' ]
374
374
type = 'url'
375
375
repr_format = '<{self.__class__.__name__} {self.representation}>'
376
376
@@ -398,7 +398,7 @@ class UnicodeRangeToken(Node):
398
398
Same as :attr:`start` if the source only specified one value.
399
399
400
400
"""
401
- __slots__ = ['start ' , 'end ' ]
401
+ __slots__ = ['end ' , 'start ' ]
402
402
type = 'unicode-range'
403
403
repr_format = '<{self.__class__.__name__} {self.start} {self.end}>'
404
404
@@ -437,7 +437,7 @@ class NumberToken(Node):
437
437
The CSS representation of the value, as a Unicode string.
438
438
439
439
"""
440
- __slots__ = ['value ' , 'int_value ' , 'is_integer ' , 'representation ' ]
440
+ __slots__ = ['int_value ' , 'is_integer ' , 'representation ' , 'value ' ]
441
441
type = 'number'
442
442
repr_format = '<{self.__class__.__name__} {self.representation}>'
443
443
@@ -481,7 +481,7 @@ class PercentageToken(Node):
481
481
as a Unicode string.
482
482
483
483
"""
484
- __slots__ = ['value ' , 'int_value ' , 'is_integer ' , 'representation ' ]
484
+ __slots__ = ['int_value ' , 'is_integer ' , 'representation ' , 'value ' ]
485
485
type = 'percentage'
486
486
repr_format = '<{self.__class__.__name__} {self.representation}%>'
487
487
@@ -540,8 +540,14 @@ class DimensionToken(Node):
540
540
if node.type == 'dimension' and node.lower_unit == 'px':
541
541
542
542
"""
543
- __slots__ = ['value' , 'int_value' , 'is_integer' , 'representation' ,
544
- 'unit' , 'lower_unit' ]
543
+ __slots__ = [
544
+ 'int_value' ,
545
+ 'is_integer' ,
546
+ 'lower_unit' ,
547
+ 'representation' ,
548
+ 'unit' ,
549
+ 'value' ,
550
+ ]
545
551
type = 'dimension'
546
552
repr_format = ('<{self.__class__.__name__} '
547
553
'{self.representation}{self.unit}>' )
@@ -680,7 +686,7 @@ class FunctionBlock(Node):
680
686
in the list.
681
687
682
688
"""
683
- __slots__ = ['name ' , 'lower_name' , 'arguments ' ]
689
+ __slots__ = ['arguments ' , 'lower_name' , 'name ' ]
684
690
type = 'function'
685
691
repr_format = '<{self.__class__.__name__} {self.name}( … )>'
686
692
@@ -743,7 +749,7 @@ class Declaration(Node):
743
749
this flag, such as non-property descriptor declarations.
744
750
745
751
"""
746
- __slots__ = ['name ' , 'lower_name' , 'value ' , 'important ' ]
752
+ __slots__ = ['important ' , 'lower_name' , 'name ' , 'value ' ]
747
753
type = 'declaration'
748
754
repr_format = '<{self.__class__.__name__} {self.name}: …>'
749
755
@@ -788,7 +794,7 @@ class QualifiedRule(Node):
788
794
as a list of :term:`component values`.
789
795
790
796
"""
791
- __slots__ = ['prelude ' , 'content ' ]
797
+ __slots__ = ['content ' , 'prelude ' ]
792
798
type = 'qualified-rule'
793
799
repr_format = ('<{self.__class__.__name__} '
794
800
'… {{ … }}>' )
@@ -849,7 +855,7 @@ class AtRule(Node):
849
855
or :obj:`None` for at-rules ending with a semicolon.
850
856
851
857
"""
852
- __slots__ = ['at_keyword' , 'lower_at_keyword ' , 'prelude ' , 'content ' ]
858
+ __slots__ = ['at_keyword' , 'content ' , 'lower_at_keyword ' , 'prelude ' ]
853
859
type = 'at-rule'
854
860
repr_format = ('<{self.__class__.__name__} '
855
861
'@{self.at_keyword} … {{ … }}>' )
0 commit comments