mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Complete comment.
This commit is contained in:
parent
4c0f91f2ca
commit
74e791301d
@ -178,8 +178,8 @@ class Config(object):
|
||||
self.extensions = config.get('extensions', [])
|
||||
|
||||
def check_unicode(self, warn):
|
||||
# check all string values for non-ASCII characters in
|
||||
# bytestrings, since that can
|
||||
# check all string values for non-ASCII characters in bytestrings,
|
||||
# since that can result in UnicodeErrors all over the place
|
||||
for name, value in self._raw_config.iteritems():
|
||||
if isinstance(value, str) and nonascii_re.search(value):
|
||||
warn('the config value %r is set to a string with non-ASCII '
|
||||
|
Loading…
Reference in New Issue
Block a user