diff --git a/Autocoders/Python/bin/tlmLayout.py b/Autocoders/Python/bin/tlmLayout.py index e735f58a01..dd293a2b97 100644 --- a/Autocoders/Python/bin/tlmLayout.py +++ b/Autocoders/Python/bin/tlmLayout.py @@ -220,7 +220,7 @@ def identifier(self, line): self.err_msg("Missing parameter(s) for identifier") self.m_name = line[1].strip() - if not len(self.m_name): + if not self.m_name: self.err_msg("Name cannot be blank") if len(self.m_name.split()) > 1: @@ -254,7 +254,7 @@ def item(self, line): self.err_msg("Missing parameter(s) for item") it.m_name = line[1].strip() - if not len(it.m_name): + if not it.m_name: self.err_msg("Name cannot be blank") if len(it.m_name.split()) > 1: @@ -353,7 +353,7 @@ def constant(self, line): it.m_is_constant = True it.m_name = line[1].strip() - if not len(it.m_name): + if not it.m_name: self.err_msg("Name cannot be blank") if len(it.m_name.split()) > 1: @@ -412,7 +412,7 @@ def packet_complete(self): global tlm_period global verbose - if not len(self.m_header_list) and not len(self.m_item_list): + if not self.m_header_list and not self.m_item_list: return self.m_bytes = (self.m_bit_index + 7) / 8 @@ -529,7 +529,7 @@ def process(self, line): global tlm_input_line_num - if not len(line): + if not line: return nonblank = False