From 2a43b44ec6d3ba4c9ed76ddb42daf7c8b3e161cb Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Tue, 27 Mar 2018 01:29:50 +0900 Subject: [PATCH] Use ``cls`` variable to instantiate --- sphinx/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/config.py b/sphinx/config.py index ba5e9a6ac..407bad31c 100644 --- a/sphinx/config.py +++ b/sphinx/config.py @@ -183,7 +183,7 @@ class Config(object): # type: (unicode, unicode, Dict, Tags) -> Config """Create a Config object from configuration file.""" namespace = eval_config_file(confdir, filename, tags) - return Config(namespace, overrides or {}) + return cls(namespace, overrides or {}) def check_types(self): # type: () -> None