summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-02-26 12:49:54 -0500
committerJason R. Coombs <jaraco@jaraco.com>2022-02-26 12:49:54 -0500
commit99f5ac503ab030c4622cbd8b5129e0880103a68f (patch)
tree9bc980af26a9a13ed861be606231ade99f5c1ae4 /setuptools/command/easy_install.py
parentbbe8b50eccb5700c44bf793346dd09540bff97ee (diff)
downloadpython-setuptools-git-99f5ac503ab030c4622cbd8b5129e0880103a68f.tar.gz
Remove 'isinstance(int)' check and just validate unconditionally.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rw-r--r--setuptools/command/easy_install.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index abf25eb9..e2a6543e 100644
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -369,9 +369,6 @@ class easy_install(Command):
@staticmethod
def _validate_optimize(value):
- if isinstance(value, int):
- return value
-
try:
value = int(value)
if value not in range(3):