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

Replace assert by if...raise in www package #34249

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

hussein-awala
Copy link
Member

assert statement is removed when the compilation is optimized, from the doc:

Assert statements are a convenient way to insert debugging assertions into a program:
assert_stmt ::= "assert"

The simple form, assert expression, is equivalent to
if debug:
if not expression: raise AssertionError

@hussein-awala hussein-awala merged commit 7b4fc39 into apache:main Sep 9, 2023
42 checks passed
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.2 milestone Oct 3, 2023
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Oct 3, 2023
ephraimbuddy pushed a commit that referenced this pull request Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues type:misc/internal Changelog: Misc changes that should appear in change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants