Skip to content

Commit fe9ba4d

Browse files
committed
Avoid hanging else at end of function
1 parent ad32e8c commit fe9ba4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pip/_internal/utils/deprecation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,5 @@ def deprecated(
122122
# Raise as an error if this behaviour is no longer supported.
123123
if is_gone:
124124
raise PipDeprecationWarning(message)
125-
else:
126-
warnings.warn(message, category=PipDeprecationWarning, stacklevel=2)
125+
126+
warnings.warn(message, category=PipDeprecationWarning, stacklevel=2)

0 commit comments

Comments
 (0)