Skip to content

Commit 6ce9885

Browse files
committed
Correct escapes for 3.13; fixes #128.
1 parent 1cd1b44 commit 6ce9885

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

postgresql/protocol/element3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def extract_command(self):
263263
Strip all the *surrounding* digits and spaces from the command tag,
264264
and return that string.
265265
"""
266-
return self.data.strip(b'\c\n\t 0123456789') or None
266+
return self.data.strip(b'\r\n\t 0123456789') or None
267267

268268
class Null(EmptyMessage):
269269
"""

postgresql/python/command.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def __init__(self, *args, **kw):
220220

221221
self.register_backslash(r'\?', self.showhelp, "Show this help message.")
222222
self.register_backslash(r'\set', self.bs_set,
223-
"Configure environment variables. \set without arguments to show all")
223+
"Configure environment variables. \\set without arguments to show all")
224224
self.register_backslash(r'\E', self.bs_E,
225225
"Edit a file or a temporary script.")
226226
self.register_backslash(r'\i', self.bs_i,

postgresql/types/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def column_names(self, get0 = get0, get1 = get1):
610610
def transform(self, *args, **kw):
611611
"""
612612
Make a new Row after processing the values with the callables associated
613-
with the values either by index, \*args, or my column name, \*\*kw.
613+
with the values either by index, *args, or my column name, **kw.
614614
615615
>>> r=Row.from_sequence({'col1':0,'col2':1}, (1,'two'))
616616
>>> r.transform(str)

0 commit comments

Comments
 (0)