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

Minor linting nitpicks and Python 2 removal #441

Merged

Conversation

sveinse
Copy link
Collaborator

@sveinse sveinse commented May 19, 2024

  • Removed minor formatting/linting nitpicks that doesn't change any code
  • Removed py2 handling in import_eds
  • Made file open more robust in import_eds

This PR is a simple cleanup. It removes some old references to python 2, including the open file logic in import_eds(). It closes #346

* Removed py2 handling in import_eds
* Made file open more robust in import_eds
Copy link
Collaborator

@acolomb acolomb left a comment

Choose a reason for hiding this comment

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

Cleanups are alright, but the logic change around open() could be simplified.

canopen/objectdictionary/eds.py Show resolved Hide resolved
@acolomb acolomb changed the title Minor linting nitpicks and python 2 removal Minor linting nitpicks and Python 2 removal May 26, 2024
@acolomb acolomb merged commit 94f337d into christiansandberg:master May 26, 2024
1 check passed
@sveinse sveinse deleted the feature-nitpicks-and-py2-removal branch May 26, 2024 11:26
@acolomb acolomb added this to the v2.3.0 milestone Jun 11, 2024
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.

Drop Python 2.7 support for better code quality and support of new language features
3 participants