swiftly/filelikeiter.py
def is_empty(self):
        """
        Check whether the "file" is empty reading the single byte.
        """
        something = self.read(1)
        if something:
            if self.buf:
                self.buf = something + self.buf
            else:
                self.buf = something
            return False
        else:
            return True
def is_empty(self):
        """
        Check whether the "file" is empty reading the single byte.
        """
        something = self.read(1)
        if something:
            if self.buf:
                self.buf = something + self.buf
            else:
                self.buf = something
            return False
        else:
            return True
Check whether the "file" is empty reading the single byte.