Avoid warning about uninitialized value in MSVC python3 tests
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 10 Jan 2022 15:08:44 +0000 (10:08 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 10 Jan 2022 15:08:44 +0000 (10:08 -0500)
Juan José Santamaría Flecha

Backpatch to all live branches

src/tools/msvc/vcregress.pl

index 8f3e3fa937b4a3480aa69604d476489c92c18375..7575acdfdf573b6fd85bde2190ea5bc8b027166e 100644 (file)
@@ -347,7 +347,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);