diff --git a/py-json/dut_profile.py b/py-json/dut_profile.py index 38a3fb84..d02e1978 100644 --- a/py-json/dut_profile.py +++ b/py-json/dut_profile.py @@ -97,7 +97,6 @@ class DUTProfile(LFCliBase): "dut": self.name, "text": "[BLANK]" }, self.debug) - notebytes = None for line in self.notes: notebytes = base64.b64encode(line.encode('ascii')) if self.debug: @@ -110,7 +109,6 @@ class DUTProfile(LFCliBase): "text-64": notebytes.decode('ascii') }, self.debug) if (self.append is not None) and (len(self.append) > 0): - notebytes = None for line in self.append: notebytes = base64.b64encode(line.encode('ascii')) if self.debug: