Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a3beb76

Browse files
author
v.shepard
committed
PBCKP-577 flake8 fixes
1 parent 8be1b3a commit a3beb76

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

testgres/node.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ class ProcessProxy(object):
115115
process: wrapped psutill.Process object
116116
ptype: instance of ProcessType
117117
"""
118+
118119
def __init__(self, process, ptype=None):
119120
self.process = process
120121
self.ptype = ptype or ProcessType.from_process(process)
@@ -697,12 +698,12 @@ def start(self, params=[], wait=True):
697698
return self
698699

699700
_params = [
700-
get_bin_path("pg_ctl"),
701-
"-D", self.data_dir,
702-
"-l", self.pg_log_file,
703-
"-w" if wait else '-W', # --wait or --no-wait
704-
"start"
705-
] + params # yapf: disable
701+
get_bin_path("pg_ctl"),
702+
"-D", self.data_dir,
703+
"-l", self.pg_log_file,
704+
"-w" if wait else '-W', # --wait or --no-wait
705+
"start"
706+
] + params # yapf: disable
706707

707708
try:
708709
execute_utility(_params, self.utils_log_file)
@@ -752,7 +753,7 @@ def kill(self, someone=None):
752753
"""
753754
if self.is_started:
754755
sig = signal.SIGKILL if os.name != 'nt' else signal.SIGBREAK
755-
if someone == None:
756+
if someone is None:
756757
os.kill(self.pid, sig)
757758
else:
758759
os.kill(self.auxiliary_pids[someone][0], sig)
@@ -1496,10 +1497,10 @@ def querier():
14961497
return sum
14971498

14981499
def pgbench_table_checksums(self, dbname="postgres",
1499-
pgbench_tables = ('pgbench_branches',
1500-
'pgbench_tellers',
1501-
'pgbench_accounts',
1502-
'pgbench_history')
1500+
pgbench_tables=('pgbench_branches',
1501+
'pgbench_tellers',
1502+
'pgbench_accounts',
1503+
'pgbench_history')
15031504
):
15041505
return {(table, self.table_checksum(table, dbname))
15051506
for table in pgbench_tables}

0 commit comments

Comments
 (0)