Merge pull request #8657 from cvrebert/patch-2

map -> map_, to avoid shadowing built-in map() func
This commit is contained in:
Pedro Algarvio 2013-11-19 17:14:51 -08:00
commit 38a229503c

View File

@ -1074,10 +1074,10 @@ class Map(Cloud):
temp_ = Template(fp.read())
# render as yaml
yaml_str_ = temp_.render()
map = yaml.safe_load(yaml_str_)
map_ = yaml.safe_load(yaml_str_)
except MakoException:
map = yaml.safe_load(fp.read())
return map
map_ = yaml.safe_load(fp.read())
return map_
def read(self):
'''