Mercurial > piecrust2
comparison piecrust/processing/less.py @ 7:343d08ef5668
More PieCrust 3 fixes, and a couple of miscellaneous bug fixes.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 16 Aug 2014 15:07:22 -0700 |
parents | 474c9882decf |
children | de6a296744f7 |
comparison
equal
deleted
inserted
replaced
6:f5ca5c5bed85 | 7:343d08ef5668 |
---|---|
69 if not isinstance(self._conf['options'], list): | 69 if not isinstance(self._conf['options'], list): |
70 raise Exception("The `less/options` configuration setting " | 70 raise Exception("The `less/options` configuration setting " |
71 "must be an array of arguments.") | 71 "must be an array of arguments.") |
72 | 72 |
73 def _getMapPath(self, path): | 73 def _getMapPath(self, path): |
74 map_name = "%s.map" % hashlib.md5(path).hexdigest() | 74 map_name = "%s.map" % hashlib.md5(path.encode('utf8')).hexdigest() |
75 map_path = os.path.join(self._map_dir, map_name) | 75 map_path = os.path.join(self._map_dir, map_name) |
76 return map_path | 76 return map_path |
77 | 77 |