diff options
author | Pradyun Gedam <pradyunsg@users.noreply.github.com> | 2021-07-28 23:55:37 +0100 |
---|---|---|
committer | Pradyun Gedam <pradyunsg@users.noreply.github.com> | 2021-08-15 19:15:52 +0100 |
commit | fe9ba4d40133c707201665a39fae23ad167aa5c2 (patch) | |
tree | 4d30c6728d567713dccb56b6a7c61ee0b5aada14 /src | |
parent | ad32e8c3039fe82850ae8d2550aaa347a1479e6b (diff) | |
download | pip-fe9ba4d40133c707201665a39fae23ad167aa5c2.tar.gz |
Avoid hanging else at end of function
Diffstat (limited to 'src')
-rw-r--r-- | src/pip/_internal/utils/deprecation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pip/_internal/utils/deprecation.py b/src/pip/_internal/utils/deprecation.py index 038c92f22..d93cbae17 100644 --- a/src/pip/_internal/utils/deprecation.py +++ b/src/pip/_internal/utils/deprecation.py @@ -122,5 +122,5 @@ def deprecated( # Raise as an error if this behaviour is no longer supported. if is_gone: raise PipDeprecationWarning(message) - else: - warnings.warn(message, category=PipDeprecationWarning, stacklevel=2) + + warnings.warn(message, category=PipDeprecationWarning, stacklevel=2) |