summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSander Sweers <infirit@gmail.com>2018-07-04 17:59:53 +0000
committerSander Sweers <infirit@gmail.com>2018-07-04 17:59:53 +0000
commit65841279b1e655198e84b1219f11c3ec507ba93a (patch)
tree346fbbd60ea77ba2a40123794d3ddd192c5da907 /tools
parent855e4199390bfa8ea2a07f2d6ecdbe75faa3a5ac (diff)
downloadpygobject-65841279b1e655198e84b1219f11c3ec507ba93a.tar.gz
pygi-convert: Fix GLib.IOCondition regex
Diffstat (limited to 'tools')
-rwxr-xr-xtools/pygi-convert.sh2
1 files changed, 1 insertions, 1 deletions
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;" \