mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
make sure to encode strings passed to md5
This commit is contained in:
parent
0780242572
commit
24d8ce4734
@ -146,8 +146,9 @@ 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(str(cfgdict)).hexdigest()
|
||||
self.tags_hash = md5(str(sorted(self.tags))).hexdigest()
|
||||
self.config_hash = md5(unicode(cfgdict).encode('ascii')).hexdigest()
|
||||
self.tags_hash = md5(unicode(sorted(self.tags)).encode('ascii')) \
|
||||
.hexdigest()
|
||||
old_config_hash = old_tags_hash = ''
|
||||
try:
|
||||
fp = open(path.join(self.outdir, '.buildinfo'))
|
||||
|
Loading…
Reference in New Issue
Block a user