Skip to content

Commit b549b69

Browse files
committed
Move python_interpreter out of the config object
Move python_interpreter out of the config object
1 parent 4911600 commit b549b69

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readthedocs/config/config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=too-many-lines
32

43
"""Build configuration for rtd."""
@@ -37,6 +36,7 @@
3736
validate_string,
3837
)
3938

39+
4040
__all__ = (
4141
'ALL',
4242
'load',
@@ -233,11 +233,6 @@ def pop_config(self, key, default=None, raise_ex=False):
233233
def validate(self):
234234
raise NotImplementedError()
235235

236-
@property
237-
def python_interpreter(self):
238-
ver = self.python_full_version
239-
return 'python{}'.format(ver)
240-
241236
@property
242237
def python_full_version(self):
243238
ver = self.python.version
@@ -1093,6 +1088,11 @@ def submodules(self):
10931088
return Submodules(**self._config['submodules'])
10941089

10951090

1091+
def python_interpreter(self):
1092+
ver = self.python_full_version
1093+
return 'python{}'.format(ver)
1094+
1095+
10961096
def load(path, env_config):
10971097
"""
10981098
Load a project configuration and the top-most build config for a given path.

0 commit comments

Comments
 (0)