Skip to content

Commit 35f0919

Browse files
committed
RF(minor): remove not needed \ for newline continuation within function call signature
For consistency with jupyterhub itself
1 parent 9165b0e commit 35f0919

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

batchspawner/batchspawner.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,52 +79,52 @@ class BatchSpawnerBase(Spawner):
7979
# override default server ip since batch jobs normally running remotely
8080
ip = Unicode("0.0.0.0", help="Address for singleuser server to listen at").tag(config=True)
8181

82-
exec_prefix = Unicode('sudo -E -u {username}', \
82+
exec_prefix = Unicode('sudo -E -u {username}',
8383
help="Standard executon prefix (e.g. the default sudo -E -u {username})"
8484
).tag(config=True)
8585

8686
# all these req_foo traits will be available as substvars for templated strings
87-
req_queue = Unicode('', \
87+
req_queue = Unicode('',
8888
help="Queue name to submit job to resource manager"
8989
).tag(config=True)
9090

91-
req_host = Unicode('', \
91+
req_host = Unicode('',
9292
help="Host name of batch server to submit job to resource manager"
9393
).tag(config=True)
9494

95-
req_memory = Unicode('', \
95+
req_memory = Unicode('',
9696
help="Memory to request from resource manager"
9797
).tag(config=True)
9898

99-
req_nprocs = Unicode('', \
99+
req_nprocs = Unicode('',
100100
help="Number of processors to request from resource manager"
101101
).tag(config=True)
102102

103-
req_ngpus = Unicode('', \
103+
req_ngpus = Unicode('',
104104
help="Number of GPUs to request from resource manager"
105105
).tag(config=True)
106106

107-
req_runtime = Unicode('', \
107+
req_runtime = Unicode('',
108108
help="Length of time for submitted job to run"
109109
).tag(config=True)
110110

111-
req_partition = Unicode('', \
111+
req_partition = Unicode('',
112112
help="Partition name to submit job to resource manager"
113113
).tag(config=True)
114114

115-
req_account = Unicode('', \
115+
req_account = Unicode('',
116116
help="Account name string to pass to the resource manager"
117117
).tag(config=True)
118118

119-
req_options = Unicode('', \
119+
req_options = Unicode('',
120120
help="Other options to include into job submission script"
121121
).tag(config=True)
122122

123-
req_prologue = Unicode('', \
123+
req_prologue = Unicode('',
124124
help="Script to run before single user server starts."
125125
).tag(config=True)
126126

127-
req_epilogue = Unicode('', \
127+
req_epilogue = Unicode('',
128128
help="Script to run after single user server ends."
129129
).tag(config=True)
130130

@@ -144,7 +144,7 @@ def _req_homedir_default(self):
144144
def _req_keepvars_default(self):
145145
return ','.join(self.get_env().keys())
146146

147-
batch_script = Unicode('', \
147+
batch_script = Unicode('',
148148
help="Template for job submission script. Traits on this class named like req_xyz "
149149
"will be substituted in the template for {xyz} using string.Formatter. "
150150
"Must include {cmd} which will be replaced with the jupyterhub-singleuser command line."
@@ -167,7 +167,7 @@ def get_req_subvars(self):
167167
subvars[t[4:]] = getattr(self, t)
168168
return subvars
169169

170-
batch_submit_cmd = Unicode('', \
170+
batch_submit_cmd = Unicode('',
171171
help="Command to run to submit batch scripts. Formatted using req_xyz traits as {xyz}."
172172
).tag(config=True)
173173

@@ -234,7 +234,7 @@ def submit_batch_script(self):
234234
return self.job_id
235235

236236
# Override if your batch system needs something more elaborate to read the job status
237-
batch_query_cmd = Unicode('', \
237+
batch_query_cmd = Unicode('',
238238
help="Command to run to read job status. Formatted using req_xyz traits as {xyz} "
239239
"and self.job_id as {job_id}."
240240
).tag(config=True)
@@ -325,7 +325,7 @@ def poll(self):
325325
self.clear_state()
326326
return 1
327327

328-
startup_poll_interval = Float(0.5, \
328+
startup_poll_interval = Float(0.5,
329329
help="Polling interval (seconds) to check job state during startup"
330330
).tag(config=True)
331331

@@ -526,11 +526,11 @@ class SlurmSpawner(UserEnvMixin,BatchSpawnerRegexStates):
526526
""").tag(config=True)
527527

528528
# all these req_foo traits will be available as substvars for templated strings
529-
req_cluster = Unicode('', \
529+
req_cluster = Unicode('',
530530
help="Cluster name to submit job to resource manager"
531531
).tag(config=True)
532532

533-
req_qos = Unicode('', \
533+
req_qos = Unicode('',
534534
help="QoS name to submit job to resource manager"
535535
).tag(config=True)
536536

0 commit comments

Comments
 (0)