mercurial/ui.py
changeset 3469 fd8f1110562c
parent 3461 8b55c0ba8048
child 3484 c3345b0f2fcd
equal deleted inserted replaced
3468:0e68608bd11d 3469:fd8f1110562c
   109 
   109 
   110         cdata = util.configparser()
   110         cdata = util.configparser()
   111         try:
   111         try:
   112             cdata.read(filename)
   112             cdata.read(filename)
   113         except ConfigParser.ParsingError, inst:
   113         except ConfigParser.ParsingError, inst:
   114             raise util.Abort(_("failed to parse %s\n%s") % (f, inst))
   114             raise util.Abort(_("failed to parse %s\n%s") % (filename,
       
   115                                                             inst))
   115 
   116 
   116         for section in sections:
   117         for section in sections:
   117             if not cdata.has_section(section):
   118             if not cdata.has_section(section):
   118                 cdata.add_section(section)
   119                 cdata.add_section(section)
   119 
   120