From a22306c81c096e946b99866e0befdda9dadc8852 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Tue, 22 Oct 2019 19:11:48 +0000 Subject: [PATCH] Remove unnecessary check for Python >= 3.5 --- doc/source/conf.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 86f78d9c0f0ae..cdabf2d470839 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -608,11 +608,7 @@ def linkcode_resolve(domain, info): return None try: - # inspect.unwrap() was added in Python version 3.4 - if sys.version_info >= (3, 5): - fn = inspect.getsourcefile(inspect.unwrap(obj)) - else: - fn = inspect.getsourcefile(obj) + fn = inspect.getsourcefile(inspect.unwrap(obj)) except TypeError: fn = None if not fn: