Did I find the right examples for you? yes no

All Samples(148)  |  Call(148)  |  Derive(0)  |  Import(0)
Read until EOF using readline() and return a list containing the
lines thus read.

If the optional sizehint argument is present, instead of reading up
to EOF, whole lines totalling approximately sizehint bytes (or more
to accommodate a final whole line).

src/l/a/lalita-0.1.1/lalita/plugins/example.py   lalita(Download)
s.readline()
s.readline()
zen = [unicode(x.strip()) for x in s.readlines()]
 

src/c/o/Command-Tools-0.1a2/command_tools/system/open_file.py   Command-Tools(Download)
    def readlines(self, sizehint = 0):
        self.check_can_read()
        return StringIO.readlines(self, sizehint)
 
    def truncate(self, size=None):

src/p/d/PDF-1.0/PDF/pdf.py   PDF(Download)
                pos = streamData.tell()
                streamData.seek(0,0)
                lines = streamData.readlines()
                for i in range(0,len(lines)):
                    print lines[i]

src/t/o/tolog-HEAD/index.py   tolog(Download)
            s2 = StringIO.StringIO()
            #s.write(d)
            lines =  s1.readlines()
            file_ext = util.get_file_ext(lines[1])
            lines = lines[4:-5]

src/s/a/salt-2014.1.3/salt/modules/rh_ip.py   salt(Download)
def _read_temp(data):
    tout = StringIO.StringIO()
    tout.write(data)
    tout.seek(0)
    output = tout.readlines()

src/s/a/salt-2014.1.3/salt/modules/debian_ip.py   salt(Download)
    tout.write(data)
    tout.seek(0)
    output = tout.readlines()
    tout.close()
 

src/s/a/salt-HEAD/salt/modules/rh_ip.py   salt(Download)
def _read_temp(data):
    tout = StringIO.StringIO()
    tout.write(data)
    tout.seek(0)
    output = tout.readlines()

src/s/a/salt-HEAD/salt/modules/debian_ip.py   salt(Download)
    tout.write(data)
    tout.seek(0)
    output = tout.readlines()
    tout.close()
 

src/s/a/salt-thin-HEAD/salt/modules/rh_ip.py   salt-thin(Download)
def _read_temp(data):
    tout = StringIO.StringIO()
    tout.write(data)
    tout.seek(0)
    output = tout.readlines()

src/s/a/salt-thin-HEAD/salt/modules/debian_ip.py   salt-thin(Download)
    tout.write(data)
    tout.seek(0)
    output = tout.readlines()
    tout.close()
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next