Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

tidy: fix open() encoding #1880

Open
reidpr opened this issue Mar 22, 2024 · 0 comments
Open

tidy: fix open() encoding #1880

reidpr opened this issue Mar 22, 2024 · 0 comments

Comments

@reidpr
Copy link
Collaborator

reidpr commented Mar 22, 2024

Split from #1860. Pylint: W1514 unspecified-encoding

This happens twice:

with open(self, "rt") as fp:

Probably right here.

sys.stdout = open(os.devnull, 'w')

This one is a false positive: /dev/null discards all bytes written and offers no bytes on reading (just EOF), so encoding doesn’t matter. I think I might file a feature request on Pylint.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant