Skip to content

Commit 1335e51

Browse files
PostgresNode::_escape_config_value is updated (code style)
1 parent 9dd8dfe commit 1335e51

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

testgres/node.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,17 +1704,17 @@ def _escape_config_value(value):
17041704
result = "'"
17051705

17061706
for ch in value:
1707-
if (ch == "'"):
1707+
if ch == "'":
17081708
result += "\\'"
1709-
elif (ch == "\n"):
1709+
elif ch == "\n":
17101710
result += "\\n"
1711-
elif (ch == "\r"):
1711+
elif ch == "\r":
17121712
result += "\\r"
1713-
elif (ch == "\t"):
1713+
elif ch == "\t":
17141714
result += "\\t"
1715-
elif (ch == "\b"):
1715+
elif ch == "\b":
17161716
result += "\\b"
1717-
elif (ch == "\\"):
1717+
elif ch == "\\":
17181718
result += "\\\\"
17191719
else:
17201720
result += ch

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy