[pygobject] pygi-convert.sh: convert rsvg.Handle(data=...)
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] pygi-convert.sh: convert rsvg.Handle(data=...)
- Date: Tue, 17 Jul 2012 14:00:56 +0000 (UTC)
commit 0b08c01414ac73a4604acd9a846e7af09574929f
Author: Manuel Kaufmann <humitos gmail com>
Date: Tue Jul 17 09:05:27 2012 -0300
pygi-convert.sh: convert rsvg.Handle(data=...)
Replace rsvg.Handle(data=data) with Rsvg.Handle.new_from_data(data)
https://bugzilla.gnome.org/show_bug.cgi?id=680092
Signed-off-by: Manuel Kaufmann <humitos gmail com>
Signed-off-by: Martin Pitt <martinpitt gnome org>
pygi-convert.sh | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index 8ab2ff1..a189b77 100644
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -99,6 +99,8 @@ for f in $FILES_TO_CONVERT; do
-pe "s/import gobject\n/from gi.repository import GObject\n/g;" \
-pe "s/Gtk\..*\.__init__/gobject.GObject.__init__/g;" \
\
+ -pe "s/rsvg.Handle\s*\(data=([^,\)]+)\)/Rsvg.Handle.new_from_data(\1)/g;" \
+\
-pe "s/from gtk import gdk\n/from gi.repository import Gdk\n/g;" \
-pe "s/import gtk.gdk as gdk\n/from gi.repository import Gdk\n/g;" \
-pe "s/Gtk.gdk.x11_/GdkX11.x11_/g;" \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]