bt2, babeltrace: apply PEP 8 except for E501 and E722
[babeltrace.git] / bindings / python / babeltrace / babeltrace / writer.py
index d5f282e630c76b20ede7c9adee3225bdeacb712a..04b137873b36fabc78b275ff09926d6b8e2c8204 100644 (file)
@@ -27,6 +27,7 @@
 import babeltrace.common as common
 import bt2
 
+
 class EnumerationMapping:
     """
     Mapping from an enumeration label to a range of integers.
@@ -334,6 +335,7 @@ _ENCODING_TO_BT2_ENCODING = {
     common.CTFStringEncoding.UTF8: bt2.Encoding.UTF8,
 }
 
+
 class FieldDeclaration:
     """
     Base class of all field declarations. This class is not meant to
@@ -679,7 +681,6 @@ class FloatingPointFieldDeclaration(FieldDeclaration):
             raise TypeError(
                 "Could not get Floating point exponent digit count")
 
-
     @exponent_digits.setter
     def exponent_digits(self, exponent_digits):
         try:
@@ -705,7 +706,6 @@ class FloatingPointFieldDeclaration(FieldDeclaration):
             raise TypeError(
                 "Could not get Floating point mantissa digit count")
 
-
     @mantissa_digits.setter
     def mantissa_digits(self, mantissa_digits):
         try:
@@ -803,7 +803,7 @@ class VariantFieldDeclaration(FieldDeclaration):
             raise TypeError("Invalid tag type; must be of type EnumerationFieldDeclaration.")
 
         self._field_type = bt2.VariantFieldType(tag_name=tag_name,
-                                        tag_field_type=enum_tag._field_type)
+                                                tag_field_type=enum_tag._field_type)
         super().__init__()
 
     @property
@@ -1583,6 +1583,7 @@ class Event:
         except:
             raise ValueError("Invalid stream context field.")
 
+
 class StreamClass:
     """
     A stream class contains the properties of specific
This page took 0.024606 seconds and 4 git commands to generate.