Snakemake version
Checked this issue is in the master branch
Describe the bug
I am trying to open a file (output of a checkpoint rule) using the .open() method while specifying the mode. However, it just gets opened in text mode which leads to an error downstream in my code.
I had a look at the code in the master branch, and the method has call signature
def open(self, mode="r", buffering=-1, encoding=None, errors=None, newline=None):
however, in the body of the function it just calls
I think this should instead be
f = open(self, mode=mode, buffering=buffering, encoding=encoding, errors=errors, newline=newline)