Did I find the right examples for you? yes no

All Samples(92)  |  Call(92)  |  Derive(0)  |  Import(0)
Write a sequence of strings to the file. The sequence can be any
iterable object producing strings, typically a list of strings. There
is no return value.

(The name is intended to match readlines(); writelines() does not add
line separators.)

src/s/l/slarch-0.1/slarch/archive.py   slarch(Download)
    def writelines(self, iterable):
        StringIO.StringIO.writelines(self, iterable)
        self._dirty = True
 
    def truncate(self, size=None):

src/c/o/Command-Tools-0.1a2/command_tools/system/open_file.py   Command-Tools(Download)
    def writelines(self, iterable):
        self.check_can_write()
        return StringIO.writelines(self, iterable)
 
 

src/b/u/buildtools-BaseTools-HEAD/Source/Python/GenFds/Fv.py   buildtools-BaseTools(Download)

src/d/r/Drapache-HEAD/drapache/dbapi/io.py   Drapache(Download)
		if self.mode == 'append':
			self.seek(0,2)
		StringIO.StringIO.writelines(self,sequence)
 
 

src/h/m/hmslincs-HEAD/django/db/api.py   hmslincs(Download)
        if(isinstance(cursor,dict) and 'error_message' in cursor):
            logger.info(str(('report error', cursor)))
            raw_data.writelines(('error_message\n',cursor['error_message'],'\n'))
            return raw_data.getvalue() 
 
        if isinstance(cursor,dict) and 'error_message' in cursor :
            logger.info(str(('report error', cursor)))
            raw_data.writelines(('error_message\n',cursor['error_message'],'\n'))
            return raw_data.getvalue() 
        elif isinstance(cursor,dict) :
            # then in this case, this is a non-error dict, probably for the schema, dump and return.
            raw_data.writelines(json.dumps(cursor))

src/c/s/CS112-Spring2012-HEAD/hw08/hw08.py   CS112-Spring2012(Download)
                out.write("\n")
                out.write("Expected:\n")
                out.writelines('\t%s\n'%s for s in outp.splitlines())
                out.write("Actual:\n")
                out.writelines('\t%s\n'%s for s in actual.splitlines())

src/b/u/buildtools-BaseTools-HEAD/Source/Python/GenFds/Capsule.py   buildtools-BaseTools(Download)

src/h/y/hyperspy-0.7/hyperspy/io_plugins/ripple.py   hyperspy(Download)
            fp_list.append(line)
        fp = StringIO()
        fp.writelines(fp_list)
    fp.seek(0)
    return fp

src/h/m/hmslincs-HEAD/django/db/DjangoTables2Serializer.py   hmslincs(Download)
        # this is an unexpected way to get this error, look into tastypie sequence calls
        if(isinstance(table,dict) and 'error_message' in table):
            raw_data.writelines(('error_message\n',table['error_message'],'\n'))
            return raw_data.getvalue() 
 

src/h/y/hyperspy-HEAD/hyperspy/io_plugins/ripple.py   hyperspy(Download)
            fp_list.append(line)
        fp = StringIO()
        fp.writelines(fp_list)
    fp.seek(0)
    return fp

  1 | 2 | 3  Next