mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use utf-8 instead of ascii to encode strings for hashing
This commit is contained in:
parent
24d8ce4734
commit
eaa3cb4f1f
@ -146,8 +146,8 @@ class StandaloneHTMLBuilder(Builder):
|
||||
cfgdict = dict((name, self.config[name])
|
||||
for (name, desc) in self.config.values.iteritems()
|
||||
if desc[1] == 'html')
|
||||
self.config_hash = md5(unicode(cfgdict).encode('ascii')).hexdigest()
|
||||
self.tags_hash = md5(unicode(sorted(self.tags)).encode('ascii')) \
|
||||
self.config_hash = md5(unicode(cfgdict).encode('utf-8')).hexdigest()
|
||||
self.tags_hash = md5(unicode(sorted(self.tags)).encode('utf-8')) \
|
||||
.hexdigest()
|
||||
old_config_hash = old_tags_hash = ''
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user