comparison piecrust/processing/less.py @ 5:474c9882decf

Upgrade to Python 3.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 11 Aug 2014 22:36:47 -0700
parents f485ba500df3
children 343d08ef5668
comparison
equal deleted inserted replaced
4:7dc71c2dc9a8 5:474c9882decf
33 # The last one is always the file itself, so skip that. Also, 33 # The last one is always the file itself, so skip that. Also,
34 # make all paths absolute. 34 # make all paths absolute.
35 path_dir = os.path.dirname(path) 35 path_dir = os.path.dirname(path)
36 def _makeAbs(p): 36 def _makeAbs(p):
37 return os.path.join(path_dir, p) 37 return os.path.join(path_dir, p)
38 return map(_makeAbs, source[:-1]) 38 return list(map(_makeAbs, source[:-1]))
39 except IOError: 39 except IOError:
40 # Map file not found... rebuild. 40 # Map file not found... rebuild.
41 logger.debug("No map file found for LESS file '%s' at '%s'. " 41 logger.debug("No map file found for LESS file '%s' at '%s'. "
42 "Rebuilding" % (path, map_path)) 42 "Rebuilding" % (path, map_path))
43 return FORCE_BUILD 43 return FORCE_BUILD