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

Exception version python #22

Merged
merged 2 commits into from
Mar 19, 2017
Merged

Conversation

MatthieuDEVALLE
Copy link
Contributor

Bonsoir,

Ce code déclenche une exception si la version de python n'est pas la version 3.

Cordialement,

Copy link
Owner

@matthieu637 matthieu637 left a comment

Choose a reason for hiding this comment

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

Pas besoin de s'encombrer d'un try+assert+except là où un raise suffit.

@MatthieuDEVALLE
Copy link
Contributor Author

Voilà, c'est effectivement bien plus court.

@matthieu637 matthieu637 merged commit 64ecfde into matthieu637:master Mar 19, 2017
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