Skip to content

Simplified error handling using Python 3 syntax#71

Merged
droideck merged 1 commit intopyasn1:mainfrom
Avasam:Python-3-simplified-error-handling
Aug 22, 2024
Merged

Simplified error handling using Python 3 syntax#71
droideck merged 1 commit intopyasn1:mainfrom
Avasam:Python-3-simplified-error-handling

Conversation

@Avasam
Copy link
Copy Markdown

@Avasam Avasam commented Aug 1, 2024

81ce8d0 removed support for Python 2, so error handling can be migrated to Python 3 syntax.

I've left in sys.exec_info that would be removed by #62 (modifying those would be invalid Python 2 syntax anyway) (that PR has now been merged)

@Avasam Avasam force-pushed the Python-3-simplified-error-handling branch from e048fe3 to 1a6398c Compare August 22, 2024 00:14
Copy link
Copy Markdown

@droideck droideck left a comment

Choose a reason for hiding this comment

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

Besides the minor concern, looks good!

Comment thread tests/codec/ber/test_decoder.py
@droideck droideck merged commit 8c4f5e5 into pyasn1:main Aug 22, 2024
@Avasam Avasam deleted the Python-3-simplified-error-handling branch August 22, 2024 01:57
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