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

Commitd9473c6

Browse files
committed
get rid of DEFAULT_XLOG_METHOD (because kwargs)
1 parent3175125 commitd9473c6

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

‎testgres/backup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
TMP_NODE, \
1414
TMP_BACKUP, \
1515
PG_CONF_FILE, \
16-
BACKUP_LOG_FILE, \
17-
DEFAULT_XLOG_METHOD
16+
BACKUP_LOG_FILE
1817

1918
from .defaultsimportdefault_username
2019

@@ -38,7 +37,7 @@ def __init__(self,
3837
node,
3938
base_dir=None,
4039
username=None,
41-
xlog_method=DEFAULT_XLOG_METHOD):
40+
xlog_method=XLogMethod.fetch):
4241
"""
4342
Create a new backup.
4443

‎testgres/consts.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# coding: utf-8
22

3-
from .enumsimportXLogMethod
4-
53
# names for dirs in base_dir
64
DATA_DIR="data"
75
LOGS_DIR="logs"
@@ -25,6 +23,3 @@
2523
PG_LOG_FILE="postgresql.log"
2624
UTILS_LOG_FILE="utils.log"
2725
BACKUP_LOG_FILE="backup.log"
28-
29-
# default argument value
30-
DEFAULT_XLOG_METHOD=XLogMethod.fetch

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp