Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/ui.py @ 3469:fd8f1110562c
fix errors spotted by pychecker
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 19 Oct 2006 16:55:34 +0200 |
parents | 8b55c0ba8048 |
children | c3345b0f2fcd |
comparison
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 |