Skip to content

Commit a2ecba6

Browse files
author
James William Pye
committed
Still using pprint; report and patch by Elvis Pranskevichus.
1 parent a27a09b commit a2ecba6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

postgresql/protocol/xact3.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
'PQ version 3.0 client transactions'
55
import sys
66
import os
7+
import pprint
78
from abc import ABCMeta, abstractmethod
89
from itertools import chain
910
from operator import itemgetter
@@ -111,7 +112,7 @@ def __init__(self,
111112

112113
def __repr__(self):
113114
s = type(self).__module__ + "." + type(self).__name__
114-
s += pformat((self.startup_message, self.password)).lstrip()
115+
s += pprint.pformat((self.startup_message, self.password)).lstrip()
115116
return s
116117

117118
def messages_received(self):
@@ -430,7 +431,7 @@ def __repr__(self, format = '{mod}.{name}({nl}{args})'.format):
430431
mod = type(self).__module__,
431432
name = type(self).__name__,
432433
nl = os.linesep,
433-
args = pformat(self.commands)
434+
args = pprint.pformat(self.commands)
434435
)
435436

436437
def messages_received(self):

0 commit comments

Comments
 (0)