diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-21 19:15:27 -0800 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-22 19:05:14 -0800 |
commit | d99e2cae1981940437f073dc07f1420efa2c0bea (patch) | |
tree | e4c572d660e30b2351817ea2c52a4a8a7d134520 /sphinx/config.py | |
parent | 318cfadfe0a3aa242ad250f6e3a2af8f8791cb5b (diff) | |
download | sphinx-git-d99e2cae1981940437f073dc07f1420efa2c0bea.tar.gz |
Deprecate evaluating Python 2 syntax in configuration files
Diffstat (limited to 'sphinx/config.py')
-rw-r--r-- | sphinx/config.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/config.py b/sphinx/config.py index e12889c61..5948becf4 100644 --- a/sphinx/config.py +++ b/sphinx/config.py @@ -361,8 +361,7 @@ def eval_config_file(filename, tags): try: execfile_(filename, namespace) except SyntaxError as err: - msg = __("There is a syntax error in your configuration file: %s\n" - "Did you change the syntax from 2.x to 3.x?") + msg = __("There is a syntax error in your configuration file: %s\n") raise ConfigError(msg % err) except SystemExit: msg = __("The configuration file (or one of the modules it imports) " |