Skip to content

Commit 880b4f2

Browse files
authored
Remove superfluous file parameter (#735)
* remove superfluous file parameter * update changelog
1 parent 2392c2a commit 880b4f2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cluster_tools/Changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ For upgrade instructions, please check the respective *Breaking Changes* section
1616
### Changed
1717

1818
### Fixed
19-
19+
- Fix `_log() got unexpected keyword argument: 'file'` error for newer Python versions. [#735](https://github.com/scalableminds/webknossos-libs/pull/735)
2020

2121
## [0.10.1](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.10.1) - 2022-05-10
2222
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.10.0...v0.10.1)

cluster_tools/cluster_tools/schedulers/cluster_executor.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _completion(self, jobid, failed_early):
204204
if not self.jobs:
205205
self.jobs_empty_cond.notify_all()
206206
if self.debug:
207-
logging.debug("Job completed: {}".format(jobid), file=sys.stderr)
207+
logging.debug("Job completed: {}".format(jobid))
208208

209209
preliminary_outfile_name = with_preliminary_postfix(outfile_name)
210210
if failed_early:
@@ -299,7 +299,7 @@ def submit(self, fun, *args, **kwargs):
299299
jobid = jobids_futures[0].result()
300300

301301
if self.debug:
302-
logging.debug(f"Job submitted: {jobid}", file=sys.stderr)
302+
logging.debug(f"Job submitted: {jobid}")
303303

304304
# Thread will wait for it to finish.
305305
self.wait_thread.waitFor(preliminary_output_pickle_path, jobid)
@@ -425,7 +425,6 @@ def register_jobs(
425425
"Submitted array job {} with JobId {} and {} subjobs.".format(
426426
batch_description, jobid, len(futs_with_output_paths)
427427
),
428-
file=sys.stderr,
429428
)
430429

431430
for array_index, (fut, output_path) in enumerate(futs_with_output_paths):

0 commit comments

Comments
 (0)