Skip to content

Commit

Permalink
Use single assignment for class var
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Jan 5, 2025
1 parent 79f5680 commit 7a357ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions coverage/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ class PYBEHAVIOR:

# Is "if not __debug__" optimized away? The exact details have changed
# across versions.
if pep626:
optimize_if_not_debug = 1
else:
optimize_if_not_debug = 2
optimize_if_not_debug = 1 if pep626 else 2

# 3.7 changed how functions with only docstrings are numbered.
docstring_only_function = (not PYPY) and (PYVERSION <= (3, 10))
Expand Down

0 comments on commit 7a357ee

Please sign in to comment.