Skip to content

Commit

Permalink
fix: Update __init__.py to move "file" param to "print" (snakemake#2291)
Browse files Browse the repository at this point in the history
fix
```python
            print(
                "Error: no Snakefile found, tried {}.".format(
                    ", ".join(SNAKEFILE_CHOICES), file=sys.stderr
                )
            )
```

### Description

<!--Add a description of your PR here-->

### QC
<!-- Make sure that you can tick the boxes below. -->

* [ ] The PR contains a test case for the changes or the changes are
already covered by an existing test case.
* [ ] The documentation (`docs/`) is updated to reflect the changes or
this is not necessary (e.g. if the change does neither modify the
language nor the behavior or functionalities of Snakemake).

Co-authored-by: Johannes Köster <johannes.koester@tu-dortmund.de>
  • Loading branch information
2 people authored and vsoch committed Jun 20, 2023
1 parent ac5dd8e commit 0a83695
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snakemake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2944,8 +2944,9 @@ def adjust_path(f):
if args.snakefile is None:
print(
"Error: no Snakefile found, tried {}.".format(
", ".join(SNAKEFILE_CHOICES), file=sys.stderr
)
", ".join(SNAKEFILE_CHOICES)
),
file=sys.stderr,
)
sys.exit(1)

Expand Down

0 comments on commit 0a83695

Please sign in to comment.