Mercurial > hg
diff hgext/convert/darcs.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | 25e572394f5c |
children | 02d6149a480b |
line wrap: on
line diff
--- a/hgext/convert/darcs.py Mon Jan 25 00:05:22 2010 -0600 +++ b/hgext/convert/darcs.py Mon Jan 25 00:05:27 2010 -0600 @@ -12,15 +12,19 @@ # The naming drift of ElementTree is fun! -try: from xml.etree.cElementTree import ElementTree +try: + from xml.etree.cElementTree import ElementTree except ImportError: - try: from xml.etree.ElementTree import ElementTree + try: + from xml.etree.ElementTree import ElementTree except ImportError: - try: from elementtree.cElementTree import ElementTree + try: + from elementtree.cElementTree import ElementTree except ImportError: - try: from elementtree.ElementTree import ElementTree - except ImportError: ElementTree = None - + try: + from elementtree.ElementTree import ElementTree + except ImportError: + ElementTree = None class darcs_source(converter_source, commandline): def __init__(self, ui, path, rev=None):