Fix Python 3.5 test failure

This commit is contained in:
Simon Willison 2017-12-09 10:39:16 -08:00
commit 1c0d93c39b
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52

View file

@ -843,7 +843,7 @@ class Datasette:
def app_css_hash(self):
if not hasattr(self, '_app_css_hash'):
self._app_css_hash = hashlib.sha1(
open(os.path.join(app_root, 'datasette/static/app.css')).read().encode('utf8')
open(os.path.join(str(app_root), 'datasette/static/app.css')).read().encode('utf8')
).hexdigest()[:6]
return self._app_css_hash