code: def _print_command(self, cmd):
          
          text = helpers.repr_bytes(cmd)
          self.outf.write(text)
          if not text.endswith(b'\n'):
              self.outf.write(b'\n')
docs: Wrapper to avoid adding unnecessary blank lines.