pygobject r947 - in trunk: . gio
- From: paulp svn gnome org
- To: svn-commits-list gnome org
- Subject: pygobject r947 - in trunk: . gio
- Date: Tue, 12 Aug 2008 20:06:30 +0000 (UTC)
Author: paulp
Date: Tue Aug 12 20:06:30 2008
New Revision: 947
URL: http://svn.gnome.org/viewvc/pygobject?rev=947&view=rev
Log:
2008-08-12 Paul Pogonyshev <pogonyshev gmx net>
Bug 547484 â wrap gio.DataInputStream.read_line and ...read_until
* tests/test_gio.py (TestDataInputStream): New test case.
* gio/gio.defs (read_line, read_until): Document.
* gio/ginputstream.override (_wrap_g_data_input_stream_read_line)
(_wrap_g_data_input_stream_read_until): New functions.
Modified:
trunk/ChangeLog
trunk/gio/gio.defs
Modified: trunk/gio/gio.defs
==============================================================================
--- trunk/gio/gio.defs (original)
+++ trunk/gio/gio.defs Tue Aug 12 20:06:30 2008
@@ -713,6 +713,10 @@
(define-method read_line
(of-object "GDataInputStream")
+ (docstring
+ "S.read_line([cancellable]) -> str\n"
+ "Read a line from the stream. Return value includes ending newline\n"
+ "character.")
(c-name "g_data_input_stream_read_line")
(return-type "char*")
(parameters
@@ -724,6 +728,11 @@
(define-method read_until
(of-object "GDataInputStream")
+ (docstring
+ "S.read_until(stop_chars, [cancellable]) -> str\n"
+ "Read characters from the string, stopping at the end or upon reading\n"
+ "any character in stop_chars. Return value does not include the stopping\n"
+ "character.")
(c-name "g_data_input_stream_read_until")
(return-type "char*")
(parameters
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]