codegen.py, cgen.py: fix Pylint errors/warnings
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 3 Sep 2020 17:19:01 +0000 (13:19 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 3 Sep 2020 17:23:14 +0000 (13:23 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/cgen.py
barectf/codegen.py

index 6c9cf4a05369c59cfa78398e895e8d4bcb358a5d..86ebd1f78cc592801422ca02add959d496a0e237 100644 (file)
@@ -115,7 +115,7 @@ _Ops = List[_Op]
 #
 # Get an operation builder's operations with its `ops` property.
 class _OpsBuilder:
-    def __init__(self, cg: _CodeGen):
+    def __init__(self, cg: '_CodeGen'):
         self._last_alignment: Optional[Alignment] = None
         self._last_bit_array_size: Optional[Count] = None
         self._ops: _Ops = []
@@ -516,7 +516,7 @@ class _CodeGen:
     def _serialize_ev_common_ctx_func_params_str(self, stream_type: barectf_config.StreamType,
                                                  const_params: bool) -> str:
         return self._proto_params_str(stream_type.event_common_context_field_type,
-                                      _RootFtPrefixes.ECC, const_params);
+                                      _RootFtPrefixes.ECC, const_params)
 
     # Generates the bitfield header file contents.
     def gen_bitfield_header(self) -> str:
index 025dfa9b7b553232c1925aeec9eddf206aa09257..d580a8d70d1a893e1146d7acfcffaf64659f8ee7 100644 (file)
@@ -22,7 +22,6 @@
 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 import barectf.tsdl182gen as barectf_tsdl182gen
-import barectf.template as barectf_template
 import barectf.config as barectf_config
 import barectf.cgen as barectf_cgen
 from typing import List, Optional
This page took 0.024457 seconds and 4 git commands to generate.