##// END OF EJS Templates
cleanup: get rid of most "import *"...
cleanup: get rid of most "import *" Apply script generated with the following hack: ( hg loc '*.py'|xargs pyflakes-2 | sed -rn "s/([^:]*):.*'(.*)' may be undefined, or defined from star imports.*/sed -ri 's,\\\\<\2\\\\>([^=]|$),XXXX.\2\\\\1,g' \1/gp" | sort -u hg loc '*.py'|xargs pyflakes-2 | sed -rn "s/([^:]*):.* undefined name '(.*)'$/sed -ri 's,\\\\<\2\\\\>([^=]|$),XXXX.\2\\\\1,g' \1/gp" | sort -u hg loc '*.py'|xargs pyflakes-2 | sed -rn "s/([^:]*):.*'(from .*)\.([^.]*) import \*' used.*/sed -ri 's,\\\\<XXXX\\\\.,\3.,g' \1/gp" | sort -u hg loc '*.py'|xargs pyflakes-2 | sed -rn "s/([^:]*):.*'(from .*)\.([^.]*) import \*' used.*/sed -ri 's,\2\\\\.\3 .*,\2 import \3,g' \1/gp" | sort -u ) | grep -v kallithea/bin/kallithea_cli_ishell.py > fix2.sh

File last commit:

r7718:0a277465 default
r7966:e527cc2c default
Show More
__init__.py
21 lines | 503 B | text/x-python | PythonLexer
# -*- coding: utf-8 -*-
"""
vcs.backends.hg
~~~~~~~~~~~~~~~
Mercurial backend implementation.
:created_on: Apr 8, 2010
:copyright: (c) 2010-2011 by Marcin Kuzminski, Lukasz Balcerzak.
"""
from .changeset import MercurialChangeset
from .inmemory import MercurialInMemoryChangeset
from .repository import MercurialRepository
from .workdir import MercurialWorkdir
__all__ = [
'MercurialRepository', 'MercurialChangeset',
'MercurialInMemoryChangeset', 'MercurialWorkdir',
]