(self)
return True
Copy self.filename to stdout. We avoid shutil to have
        the fewest possible dependencies on other Python modules.
Copy self.filename to stdout. We avoid shutil to have
        the fewest possible dependencies on other Python modules.
Copy self . filename to stdout . We avoid shutil to have the fewest possible dependencies on other Python modules .
def _file2stream(self):
        """Copy self.filename to stdout. We avoid shutil to have
        the fewest possible dependencies on other Python modules.
        """
        try:
            fpsrc = open(self.filename, "rb")
        except (IOError, OSError):
            return False

        while True:
            copy_buffer = fpsrc.read(1024 * 1024)
            if not copy_buffer:
                break
            sys.stdout.write(copy_buffer)

        fpsrc.close()
        return True
def _file2stream ( self ) : try : fpsrc = open ( self . filename , "rb" ) except ( IOError , OSError ) : return False while True : copy_buffer = fpsrc . read ( 1024 * 1024 ) if not copy_buffer : break sys . stdout . write ( copy_buffer ) fpsrc . close ( ) return True