From 3b42c8e06c60eeec6824db884f070518e92ec230 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Wed, 24 Jan 2018 21:30:33 +0900 Subject: [PATCH] Drop a hack for py31 --- sphinx/application.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sphinx/application.py b/sphinx/application.py index db4122b16..1832022b6 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -224,8 +224,7 @@ class Sphinx(object): # the config file itself can be an extension if self.config.setup: self._setting_up_extension = ['conf.py'] - # py31 doesn't have 'callable' function for below check - if hasattr(self.config.setup, '__call__'): + if callable(self.config.setup): self.config.setup(self) else: raise ConfigError(