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

Fix metaclass usage #473

Merged
merged 2 commits into from
Dec 2, 2022
Merged

Conversation

joshuagl
Copy link
Collaborator

@joshuagl joshuagl commented Dec 1, 2022

Fixes: #463

Description of the changes being introduced by the pull request:

The metaclass attribute was removed in Python3 and the correct way to specify a metaclass in Python 3 is the metaclass keyword argument: https://peps.python.org/pep-3115/

Update storage.py and signer.py to use the correct syntax.

Please verify and check that the pull request fulfils the following requirements:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

The __metaclass__ attribute was removed in Python3 and the correct way
to specify a metaclass in Python 3 is the metaclass keyword argument:
https://peps.python.org/pep-3115/

Signed-off-by: Joshua Lock <[email protected]>
The __metaclass__ attribute was removed in Python3 and the correct way
to specify a metaclass in Python 3 is the metaclass keyword argument:
https://peps.python.org/pep-3115/

Signed-off-by: Joshua Lock <[email protected]>
Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

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

Thanks, @joshuagl!

@lukpueh lukpueh merged commit 8cb868f into secure-systems-lab:master Dec 2, 2022
@joshuagl joshuagl deleted the joshuagl/metaclass branch December 2, 2022 14:39
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.

Signer uses python2 "__metaclass__"
3 participants