summaryrefslogtreecommitdiff
path: root/sphinx/config.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 23:02:28 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-16 21:28:51 +0900
commitc6bd84a61467a5a60adb11af7b5a7b99ac591fbf (patch)
tree239ba4d0bba3e6bf925af917d7c6d219ae1a6f64 /sphinx/config.py
parentd160adb8118ebe19ee74b3fbd55478490c473ed8 (diff)
downloadsphinx-git-c6bd84a61467a5a60adb11af7b5a7b99ac591fbf.tar.gz
refactor: Remove u-prefix from strings
Diffstat (limited to 'sphinx/config.py')
-rw-r--r--sphinx/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/config.py b/sphinx/config.py
index ad3b2c493..641809638 100644
--- a/sphinx/config.py
+++ b/sphinx/config.py
@@ -111,7 +111,7 @@ class Config:
'language': (None, 'env', string_classes),
'locale_dirs': (['locales'], 'env', []),
- 'figure_language_filename': (u'{root}.{language}{ext}', 'env', [str]),
+ 'figure_language_filename': ('{root}.{language}{ext}', 'env', [str]),
'master_doc': ('index', 'env', []),
'source_suffix': ({'.rst': 'restructuredtext'}, 'env', Any),
@@ -497,7 +497,7 @@ def check_unicode(config):
if isinstance(value, bytes) and nonascii_re.search(value):
logger.warning(__('the config value %r is set to a string with non-ASCII '
'characters; this can lead to Unicode errors occurring. '
- 'Please use Unicode strings, e.g. %r.'), name, u'Content')
+ 'Please use Unicode strings, e.g. %r.'), name, 'Content')
def check_primary_domain(app, config):