1#!/usr/bin/env python
2# Copyright (c) 2011 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6"""Selects the appropriate scraper for Firefox."""
7
8
9def GetScraper(version):
10  """Returns the scraper module for the given version.
11
12  Args:
13    version: version string of IE, or None for most recent
14
15  Returns:
16    scrape module for given version
17  """
18
19  # Pychecker will warn that the parameter is unused; we only
20  # support one version of Firefox at this time
21
22  # We only have one version of the Firefox scraper for now
23  return __import__("firefox2", globals(), locals(), [''])
24
25
26# if invoked rather than imported, test
27if __name__ == "__main__":
28  print GetScraper("2.0.0.6").version
29