You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
359 B
13 lines
359 B
import autotest_lib.tko.parsers.version_0
|
|
import autotest_lib.tko.parsers.version_1
|
|
|
|
|
|
def parser(version):
|
|
"""Creates a parser instance for the requested version.
|
|
@param version: the requested version.
|
|
"""
|
|
return {
|
|
0: autotest_lib.tko.parsers.version_0.parser,
|
|
1: autotest_lib.tko.parsers.version_1.parser,
|
|
}[version]()
|