@@ -261,6 +261,7 @@ def is_bitmask(self):
261
261
262
262
class UBIntBase (GenericType ):
263
263
"""Base class for UBInt{8,16,32,64,128}."""
264
+
264
265
def __int__ (self ):
265
266
"""Allow converting an UBInt() back to an int()."""
266
267
# Skip GenericType's checking if this is an Enum ou BitMask
@@ -497,7 +498,7 @@ class GenericStruct(metaclass=MetaStruct):
497
498
"""
498
499
499
500
def __init__ (self ):
500
- """Contructor takes no argument and stores attributes' deep copies."""
501
+ """Store attributes' deep copies."""
501
502
for name , value in self .get_class_attributes ():
502
503
setattr (self , name , deepcopy (value ))
503
504
@@ -556,7 +557,7 @@ def get_class_attributes(cls):
556
557
557
558
This method strict relies on the PEP 520 (Preserving Class Attribute
558
559
Definition Order), implemented on Python 3.6. So, if this behaviour
559
- changes this whole lib can loose its functionality (since the
560
+ changes this whole lib can lose its functionality (since the
560
561
attributes order are a strong requirement.) For the same reason, this
561
562
lib will not work on python versions earlier than 3.6.
562
563
@@ -573,7 +574,7 @@ def get_class_attributes(cls):
573
574
#: see this method docstring for a important notice about the use of
574
575
#: cls.__dict__
575
576
for name , value in cls .__dict__ .items ():
576
- # gets only our (kytos ) attributes. this ignores methods, dunder
577
+ # gets only our (pyof ) attributes. this ignores methods, dunder
577
578
# methods and attributes, and common python type attributes.
578
579
if GenericStruct ._is_pyof_attribute (value ):
579
580
yield (name , value )
0 commit comments