Skip to content

Commit 9c21bb9

Browse files
gfyoungjreback
authored andcommitted
Remove unnecessary check for Python >= 3.5 (#29167)
1 parent eb74ef0 commit 9c21bb9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

doc/source/conf.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -608,11 +608,7 @@ def linkcode_resolve(domain, info):
608608
return None
609609

610610
try:
611-
# inspect.unwrap() was added in Python version 3.4
612-
if sys.version_info >= (3, 5):
613-
fn = inspect.getsourcefile(inspect.unwrap(obj))
614-
else:
615-
fn = inspect.getsourcefile(obj)
611+
fn = inspect.getsourcefile(inspect.unwrap(obj))
616612
except TypeError:
617613
fn = None
618614
if not fn:

0 commit comments

Comments
 (0)