(self, dest_filename, mode="w")
return True
Copy from stdin to another file. We avoid shutil to have
        the fewest possible dependencies on other Python modules.
Copy from stdin to another file. We avoid shutil to have
        the fewest possible dependencies on other Python modules.
Copy from stdin to another file . We avoid shutil to have the fewest possible dependencies on other Python modules .
def _stream2file(self, dest_filename, mode="w"):
        """Copy from stdin to another file. We avoid shutil to have
        the fewest possible dependencies on other Python modules.
        """
        try:
            fpdst = open(dest_filename, mode + "b")
        except (IOError, OSError):
            return False
        while True:
            copy_buffer = sys.stdin.read(1024 * 1024)
            if not copy_buffer:
                break
            fpdst.write(copy_buffer)
        fpdst.close()
        return True
def _stream2file ( self , dest_filename , mode = "w" ) : try : fpdst = open ( dest_filename , mode + "b" ) except ( IOError , OSError ) : return False while True : copy_buffer = sys . stdin . read ( 1024 * 1024 ) if not copy_buffer : break fpdst . write ( copy_buffer ) fpdst . close ( ) return True