Skip to content

Conversation

@lancelote
Copy link
Contributor

Optional encoding and errors parameters were added in Python 3.10 to

  • fileinput.input()
  • fileinput.FileInput()
  • fileinput.hook_compressed()

Links

Note: use Python 3.10b1 for testing instead of 3.10a7.

`fileinput.input()`, `fileinput.FileInput()`, and
`fileinput.hook_compressed()` have two optional extra parameters
`encoding` and `errors` in Python 3.10
Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, remarks below.

@github-actions

This comment has been minimized.

@lancelote
Copy link
Contributor Author

@srittau Thank you for the review, and sorry for the mistake 🙇🏻‍♂️

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit ef15088 into python:master May 31, 2021
@lancelote lancelote deleted the fileinput-enc-err branch May 31, 2021 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants