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

Commit81c579c

Browse files
author
vshepard
committed
Fix flake8 style
1 parent15e4571 commit81c579c

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

‎testgres/node.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -735,13 +735,11 @@ def start(self, params=None, wait: bool = True) -> 'PostgresNode':
735735
ifself.is_started:
736736
returnself
737737

738-
_params= [
739-
self._get_bin_path("pg_ctl"),
740-
"-D",self.data_dir,
741-
"-l",self.pg_log_file,
742-
"-w"ifwaitelse'-W',# --wait or --no-wait
743-
"start"
744-
]+params# yapf: disable
738+
_params= [self._get_bin_path("pg_ctl"),
739+
"-D",self.data_dir,
740+
"-l",self.pg_log_file,
741+
"-w"ifwaitelse'-W',# --wait or --no-wait
742+
"start"]+params# yapf: disable
745743

746744
max_retries=5
747745
sleep_interval=5# seconds

‎testgres/operations/local_ops.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
importgetpass
21
importlogging
32
importos
43
importshutil
@@ -10,7 +9,7 @@
109
importpsutil
1110

1211
from ..exceptionsimportExecUtilException
13-
from .os_opsimportConnectionParams,OsOperations,pglib,get_default_encoding
12+
from .os_opsimportConnectionParams,OsOperations,get_default_encoding
1413

1514
try:
1615
fromshutilimportwhichasfind_executable

‎testgres/operations/remote_ops.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@
44
importsubprocess
55
importtempfile
66

7-
# we support both pg8000 and psycopg2
8-
try:
9-
importpsycopg2aspglib
10-
exceptImportError:
11-
try:
12-
importpg8000aspglib
13-
exceptImportError:
14-
raiseImportError("You must have psycopg2 or pg8000 modules installed")
15-
167
from ..exceptionsimportExecUtilException
178
from .os_opsimportOsOperations,ConnectionParams,get_default_encoding
189

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp