[pygobject: 1/2] pygi-convert: Fix GLib.IOCondition regex
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject: 1/2] pygi-convert: Fix GLib.IOCondition regex
- Date: Wed, 11 Jul 2018 05:54:10 +0000 (UTC)
commit 65841279b1e655198e84b1219f11c3ec507ba93a
Author: Sander Sweers <infirit gmail com>
Date: Wed Jul 4 17:59:53 2018 +0000
pygi-convert: Fix GLib.IOCondition regex
tools/pygi-convert.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tools/pygi-convert.sh b/tools/pygi-convert.sh
index 5ebab88a..8a2160a5 100755
--- a/tools/pygi-convert.sh
+++ b/tools/pygi-convert.sh
@@ -211,7 +211,7 @@ for f in $FILES_TO_CONVERT; do
\
-pe "s/import glib\n/from gi.repository import GLib\n/g;" \
-pe "s/(?<!\.)glib\./GLib\./g;" \
- -pe "s/GLib.IO_(ERR|HUP|IN|NVAL|OUT|PRI)/GLib.IOCondition./g;" \
+ -pe "s/GLib.IO_(ERR|HUP|IN|NVAL|OUT|PRI)/GLib.IOCondition.\1/g;" \
-pe "s/GLib.IO_FLAG_/GLib.IOFlags./g;" \
-pe "s/GLib.OPTION_FLAG_/GLib.OptionFlags./g;" \
-pe "s/GLib.SPAWN_/GLib.SpawnFlags./g;" \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]