Skip to content

Commit

Permalink
Merge pull request #44 from p1otr/master
Browse files Browse the repository at this point in the history
Fix parsing pg_ctl output in some locales
  • Loading branch information
Elvis Pranskevichus authored Nov 13, 2016
2 parents 38ad33b + 22ea663 commit 5ca0b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncpg/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_status(self):
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(
Expand Down

0 comments on commit 5ca0b07

Please sign in to comment.