summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPradyun Gedam <pradyunsg@users.noreply.github.com>2021-07-28 23:55:37 +0100
committerPradyun Gedam <pradyunsg@users.noreply.github.com>2021-08-15 19:15:52 +0100
commitfe9ba4d40133c707201665a39fae23ad167aa5c2 (patch)
tree4d30c6728d567713dccb56b6a7c61ee0b5aada14 /src
parentad32e8c3039fe82850ae8d2550aaa347a1479e6b (diff)
downloadpip-fe9ba4d40133c707201665a39fae23ad167aa5c2.tar.gz
Avoid hanging else at end of function
Diffstat (limited to 'src')
-rw-r--r--src/pip/_internal/utils/deprecation.py4
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)