code: def decode(self, stream, encoding='utf-8'):
          
          data = stream.read().decode(encoding).strip("\n")
          if data != "":
              logger.debug(('{0}: decoded "{1}" with encoding '
                            '{2}'.format(self.target_address, data, encoding)))
          return data
docs: Convert paramiko stream into a string
  
          :type stream:
          :param stream: stream to convert
          :type encoding: str
          :param encoding: stream encoding