Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit019812c

Browse files
committed
fix yapf pattern usage in backup.py
1 parent6c38093 commit019812c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎testgres/backup.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,14 @@ def __init__(self,
7474

7575
data_dir=os.path.join(self.base_dir,DATA_DIR)
7676

77-
# yapf: disable
7877
_params= [
7978
get_bin_path("pg_basebackup"),
8079
"-p",str(node.port),
8180
"-h",node.host,
8281
"-U",username,
8382
"-D",data_dir,
8483
"-X",xlog_method.value
85-
]
84+
]# yapf: disable
8685
execute_utility(_params,self.log_file)
8786

8887
def__enter__(self):
@@ -145,8 +144,7 @@ def spawn_primary(self, name=None, destroy=True):
145144

146145
# Build a new PostgresNode
147146
from .nodeimportPostgresNode
148-
withclean_on_error(PostgresNode(name=name,
149-
base_dir=base_dir))asnode:
147+
withclean_on_error(PostgresNode(name=name,base_dir=base_dir))asnode:
150148

151149
# New nodes should always remove dir tree
152150
node._should_rm_dirs=True

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp