[pygobject] pygi-convert: Check for double quote in require statement
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] pygi-convert: Check for double quote in require statement
- Date: Sat, 20 Apr 2013 23:51:57 +0000 (UTC)
commit 17d349f98d62ea7947c1553e0ef7e867301523aa
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Apr 14 07:37:24 2013 +1000
pygi-convert: Check for double quote in require statement
https://bugzilla.gnome.org/show_bug.cgi?id=698477
pygi-convert.sh | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/pygi-convert.sh b/pygi-convert.sh
index d40a670..4cf4c94 100755
--- a/pygi-convert.sh
+++ b/pygi-convert.sh
@@ -17,6 +17,7 @@ for f in $FILES_TO_CONVERT; do
\
-pe "s/import pygtk/import gi/g;" \
-pe "s/pygtk.require\('2.0'\)/gi.require_version\('Gtk', '3.0'\)/g;" \
+ -pe "s/pygtk.require\(\"2.0\"\)/gi.require_version\(\"Gtk\", \"3.0\"\)/g;" \
-pe "s/import gtk\n/from gi.repository import Gtk\n/g;" \
-pe "s/(?<!\.)gtk\./Gtk\./g;" \
-pe "s/Gtk.ACCEL_/Gtk.AccelFlags./g;" \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]