Skip to content

Commit fa14dbf

Browse files
committed
Use implicit line continuations instead of explicit
1 parent a8c72aa commit fa14dbf

File tree

5 files changed

+26
-21
lines changed

5 files changed

+26
-21
lines changed

delphix_will_plugin.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ def list_databases_will(self, message):
3939
@respond_to("snapshot (?P<v_object>.*)")
4040
def snapshot_databases_will(self, message, v_object=None):
4141
if " in " not in v_object:
42-
will_response = "Please specify group with request. For example:\n \
43-
snapshot Employee Oracle 11G DB in Sources"
42+
will_response = (
43+
"Please specify group with request. For example:\n"
44+
"snapshot Employee Oracle 11G DB in Sources"
45+
)
4446
self.reply(message, will_response)
4547
else:
4648
v_object = v_object.split(" in ", 1)
@@ -82,8 +84,10 @@ def provision_databases_will(self, message, v_object=None):
8284
@respond_to("delete vdb (?P<v_object>.*)")
8385
def delete_databases_will(self, message, v_object=None):
8486
if " in " not in v_object:
85-
will_response = "Please specify group with request. For example:\n \
86-
delete Employee Oracle 11G DB in Sources"
87+
will_response = (
88+
"Please specify group with request. For example:\n"
89+
"delete Employee Oracle 11G DB in Sources"
90+
)
8791
self.reply(message, will_response)
8892
else:
8993
v_object = v_object.split(" in ", 1)
@@ -112,8 +116,10 @@ def delete_databases_will(self, message, v_object=None):
112116
@respond_to("refresh vdb (?P<v_object>.*)")
113117
def refresh_vdbs_will(self, message, v_object=None):
114118
if " in " not in v_object:
115-
will_response = "Please specify group with request. For example:\n \
116-
refresh autoprod in Analytics"
119+
will_response = (
120+
"Please specify group with request. For example:\n"
121+
"refresh autoprod in Analytics"
122+
)
117123
self.reply(message, will_response)
118124
else:
119125
v_object = v_object.split(" in ", 1)
@@ -144,8 +150,11 @@ def refresh_vdbs_will(self, message, v_object=None):
144150
@respond_to("refresh jetstream (?P<v_object>.*)")
145151
def refresh_jetstream_will(self, message, v_object=None):
146152
if " in " not in v_object:
147-
will_response = "Please specify group with request. For example:\n \
148-
refresh jetstream Sugar Automated Testing Container in Masked SugarCRM Application"
153+
will_response = (
154+
"Please specify group with request. For example:\n"
155+
"refresh jetstream Sugar Automated Testing Container in"
156+
" Masked SugarCRM Application"
157+
)
149158
self.reply(message, will_response)
150159
else:
151160
v_object = v_object.split(" in ", 1)

dx_refresh_db.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -701,13 +701,10 @@ def run_job(engine):
701701
engine = dxtools_objects[arguments["--engine"]]
702702
print_info("Executing against Delphix Engine: " + arguments["--engine"])
703703
except:
704-
print_error(
705-
'Delphix Engine "'
706-
+ arguments["--engine"]
707-
+ '" \
708-
cannot be found in '
709-
+ config_file_path
710-
)
704+
print_error('Delphix Engine "{}" cannot be found in "{}"'.format(
705+
arguments["--engine"],
706+
config_file_path,
707+
))
711708
print_error("Please check your value and try again. Exiting")
712709
sys.exit(1)
713710

dx_refresh_vdb.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ def refresh_database(vdb_name, timestamp, timestamp_type="SNAPSHOT"):
171171
# OracleRefreshParameters
172172
"""
173173
rewind_params = RollbackParameters()
174-
rewind_params.timeflow_point_parameters = \
175-
dx_timeflow_obj.set_timeflow_point(container_obj, timestamp_type,
176-
timestamp)
174+
rewind_params.timeflow_point_parameters = dx_timeflow_obj.set_timeflow_point(
175+
container_obj, timestamp_type, timestamp
176+
)
177177
print_debug('{}: {}'.format(engine_name, str(rewind_params)))
178178
"""
179179
if str(container_obj.reference).startswith("ORACLE"):

lib/GetSession.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ def serversess(
9898

9999
# if use_https:
100100
# if hasattr(ssl, '_create_unverified_context'):
101-
# ssl._create_default_https_context = \
102-
# ssl._create_unverified_context
101+
# ssl._create_default_https_context = ssl._create_unverified_context
103102

104103
try:
105104
if f_engine_password:

via_httplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import urllib
1313
from argparse import RawTextHelpFormatter
1414

15-
SCRIPT_DESCRIPTION = """\
15+
SCRIPT_DESCRIPTION = """
1616
Connect to Delphix engine to run some queries using the http lib library
1717
"""
1818

0 commit comments

Comments
 (0)