Skip to content

Commit 81c579c

Browse files
author
vshepard
committed
Fix flake8 style
1 parent 15e4571 commit 81c579c

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

testgres/node.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -735,13 +735,11 @@ def start(self, params=None, wait: bool = True) -> 'PostgresNode':
735735
if self.is_started:
736736
return self
737737

738-
_params = [
739-
self._get_bin_path("pg_ctl"),
740-
"-D", self.data_dir,
741-
"-l", self.pg_log_file,
742-
"-w" if wait else '-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" if wait else '-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

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import getpass
21
import logging
32
import os
43
import shutil
@@ -10,7 +9,7 @@
109
import psutil
1110

1211
from ..exceptions import ExecUtilException
13-
from .os_ops import ConnectionParams, OsOperations, pglib, get_default_encoding
12+
from .os_ops import ConnectionParams, OsOperations, get_default_encoding
1413

1514
try:
1615
from shutil import which as find_executable

testgres/operations/remote_ops.py

-9
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@
44
import subprocess
55
import tempfile
66

7-
# we support both pg8000 and psycopg2
8-
try:
9-
import psycopg2 as pglib
10-
except ImportError:
11-
try:
12-
import pg8000 as pglib
13-
except ImportError:
14-
raise ImportError("You must have psycopg2 or pg8000 modules installed")
15-
167
from ..exceptions import ExecUtilException
178
from .os_ops import OsOperations, ConnectionParams, get_default_encoding
189

0 commit comments

Comments
 (0)