[postr] Fixed portability of GFile.load_contents() in GTK+3
- From: GermÃn Poà CaamaÃo <gpoo src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [postr] Fixed portability of GFile.load_contents() in GTK+3
- Date: Thu,  4 Oct 2012 08:58:19 +0000 (UTC)
commit c2aab1e6a758c15adbcd23b641d42af3ccdd7100
Author: GermÃn Poo-CaamaÃo <gpoo gnome org>
Date:   Thu Oct 4 01:57:12 2012 -0700
    Fixed portability of GFile.load_contents() in GTK+3
    
    Signed-off-by: GermÃn Poo-CaamaÃo <gpoo gnome org>
 src/flickrest.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/flickrest.py b/src/flickrest.py
index 9213591..934c091 100644
--- a/src/flickrest.py
+++ b/src/flickrest.py
@@ -157,7 +157,7 @@ class Flickr:
             lines.append(header)
             lines.append("")
             if isinstance(val, Gio.File):
-                contents, length, etags = val.load_contents()
+                status, contents, etags = val.load_contents(None)
                 lines.append(contents)
             # Otherwise just hope it is string-like and encode it to
             # UTF-8. TODO: this breaks when val is binary data.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]