Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/ui.py @ 4633:ff7253a0d1da
Cleanup of whitespace, indentation and line continuation.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 19 Jun 2007 08:06:37 +0200 |
parents | d97fd22a0ea9 |
children | 63b9d2deed48 |
comparison
equal
deleted
inserted
replaced
4632:8d46056960ab | 4633:ff7253a0d1da |
---|---|
164 cdata = util.configparser() | 164 cdata = util.configparser() |
165 try: | 165 try: |
166 try: | 166 try: |
167 fp = open(filename) | 167 fp = open(filename) |
168 except IOError, inst: | 168 except IOError, inst: |
169 raise util.Abort(_("unable to open %s: %s") % (filename, | 169 raise util.Abort(_("unable to open %s: %s") % |
170 getattr(inst, "strerror", inst))) | 170 (filename, getattr(inst, "strerror", inst))) |
171 try: | 171 try: |
172 cdata.readfp(fp, filename) | 172 cdata.readfp(fp, filename) |
173 finally: | 173 finally: |
174 fp.close() | 174 fp.close() |
175 except ConfigParser.ParsingError, inst: | 175 except ConfigParser.ParsingError, inst: |
176 raise util.Abort(_("failed to parse %s\n%s") % (filename, | 176 raise util.Abort(_("failed to parse %s\n%s") % (filename, inst)) |
177 inst)) | |
178 | 177 |
179 for section in sections: | 178 for section in sections: |
180 if not cdata.has_section(section): | 179 if not cdata.has_section(section): |
181 cdata.add_section(section) | 180 cdata.add_section(section) |
182 | 181 |