Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors='ignore' option with open file #193

Open
AllanWTham opened this issue Dec 8, 2023 · 2 comments
Open

errors='ignore' option with open file #193

AllanWTham opened this issue Dec 8, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@AllanWTham
Copy link

Hi there,

In this code, createcaslibjson.py, there are few entries with the errors='ignore' option with the file open:

with open(jsonfile, mode = "r", errors='ignore') as file:

Is there a way to add in a check because most customers are still running Python 2.7.5 which doesn't support this option.

@gerrynelson63
Copy link
Member

@tomstarr Can you take a look at this and the others that relate to createcaslbjson.

@tomstarr
Copy link
Collaborator

Hi Allan, a version check and notice/warning message is something I'd be happy to look into when I return from leave.
In the meantime, perhaps it'd be worth encouraging your customers to update their Python deployments, particularly since Python 2.7.5 went out-of-support/EOL on 01JAN2020
(https://devguide.python.org/versions/)

@tomstarr tomstarr added the enhancement New feature or request label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants