• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import autotest_lib.tko.parsers.version_0
2import autotest_lib.tko.parsers.version_1
3
4
5def parser(version):
6    """Creates a parser instance for the requested version.
7       @param version: the requested version.
8    """
9    return {
10        0: autotest_lib.tko.parsers.version_0.parser,
11        1: autotest_lib.tko.parsers.version_1.parser,
12    }[version]()
13