Did I find the right examples for you? yes no

All Samples(428)  |  Call(428)  |  Derive(0)  |  Import(0)
Read one entire line from the file.

A trailing newline character is kept in the string (but may be absent
when a file ends with an incomplete line). If the size argument is
present and non-negative, it is a maximum byte count (including the
trailing newline) and an incomplete line may be returned.

An empty string is returned only when EOF is encountered immediately.

Note: Unlike stdio's fgets(), the returned string contains null(more...)

src/d/j/django-navbar-0.3.0/examples/dbgp/client.py   django-navbar(Download)
                return None
            StringIO.StringIO.seek(self, 0)
            x = StringIO.StringIO.readline(self, size)
            # remove what we read from the stream
            # this ensures that reading from the beginning

src/h/u/hunch-sample-app-HEAD/django/core/handlers/wsgi.py   hunch-sample-app(Download)
        sio = StringIO(self.buffer)
        if size:
            line = sio.readline(size)
        else:
            line = sio.readline()

src/l/a/lalita-0.1.1/lalita/plugins/example.py   lalita(Download)
sys.stdout = ant
s.seek(0)
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 readline(self, length=None):
        self.check_can_read()
        return StringIO.readline(self, length)
 
    def readlines(self, sizehint = 0):

src/h/t/HTSQL-2.3.3/src/htsql/ctl/regress.py   HTSQL(Download)
    def readline(self, length=None):
        data = StringIO.StringIO.readline(self, length)
        self.output.write(data)
        return data
 

src/d/b/dbgp-1.1/dbgp/client.py   dbgp(Download)
                return None
            StringIO.StringIO.seek(self, 0)
            x = StringIO.StringIO.readline(self, size)
            # remove what we read from the stream
            # this ensures that reading from the beginning

src/k/o/komodo-python-dbgp-8.0.2/dbgp/client.py   komodo-python-dbgp(Download)
                    return None
                StringIO.StringIO.seek(self, 0)
                x = StringIO.StringIO.readline(self, size)
                # remove what we read from the stream
                # this ensures that reading from the beginning

src/p/y/pydbgp-HEAD/dbgp/client.py   pydbgp(Download)
                return None
            StringIO.StringIO.seek(self, 0)
            x = StringIO.StringIO.readline(self, size)
            # remove what we read from the stream
            # this ensures that reading from the beginning

src/h/u/hue-HEAD/desktop/core/ext-py/Django-1.4.5/django/core/handlers/wsgi.py   hue(Download)
        sio = StringIO(self.buffer)
        if size:
            line = sio.readline(size)
        else:
            line = sio.readline()

src/a/p/appscale-HEAD/AppServer/lib/django-1.4/django/core/handlers/wsgi.py   appscale(Download)
        sio = StringIO(self.buffer)
        if size:
            line = sio.readline(size)
        else:
            line = sio.readline()

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