[Python-modules-commits] [asyncpg] 01/03: fix parsing pg_ctl output in some locales

Piotr Ożarowski piotr at moszumanska.debian.org
Sun Nov 13 15:48:04 UTC 2016


This is an automated email from the git hooks/post-receive script.

piotr pushed a commit to branch master
in repository asyncpg.

commit 60fa6c3dc45d2c9168fcbc5fe7fcf20e66bd2ce5
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Nov 13 16:36:47 2016 +0100

    fix parsing pg_ctl output in some locales
---
 asyncpg/cluster.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/asyncpg/cluster.py b/asyncpg/cluster.py
index 93ac64e..73452bb 100644
--- a/asyncpg/cluster.py
+++ b/asyncpg/cluster.py
@@ -109,7 +109,7 @@ class Cluster:
         elif process.returncode == 3:
             return 'stopped'
         elif process.returncode == 0:
-            r = re.match(r'.*PID:\s+(\d+).*', stdout.decode())
+            r = re.match(r'.*PID\s?:\s+(\d+).*', stdout.decode())
             if not r:
                 raise ClusterError(
                     'could not parse pg_ctl status output: {}'.format(

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/asyncpg.git



More information about the Python-modules-commits mailing list