Avoid warning about uninitialized value in MSVC python3 tests
authorAndrew Dunstan <[email protected]>
Mon, 10 Jan 2022 15:08:44 +0000 (10:08 -0500)
committerAndrew Dunstan <[email protected]>
Mon, 10 Jan 2022 15:12:53 +0000 (10:12 -0500)
Juan José Santamaría Flecha

Backpatch to all live branches

src/tools/msvc/vcregress.pl

index 0afee7e6ec85753f1dfee692695c64ededb72332..8edad20a144cd2b5f394defafc0c9909dd480a71 100644 (file)
@@ -302,7 +302,7 @@ sub mangle_plpython3
                    s/([ [{])u'/$1'/g;
                    s/def next/def __next__/g;
                    s/LANGUAGE plpython2?u/LANGUAGE plpython3u/g;
-                   s/EXTENSION ([^ ]*_)*plpython2?u/EXTENSION $1plpython3u/g;
+                   s/EXTENSION (\S*?)plpython2?u/EXTENSION $1plpython3u/g;
                    s/installing required extension "plpython2u"/installing required extension "plpython3u"/g;
                } for ($contents);
                my $base = basename $file;