| Index: tools/site_compare/scrapers/firefox/__init__.py
|
| diff --git a/tools/site_compare/scrapers/firefox/__init__.py b/tools/site_compare/scrapers/firefox/__init__.py
|
| old mode 100644
|
| new mode 100755
|
| index 7eb929116b0cf481afe2fa5aa03ab657ff35df2b..34c0699f0727e625f2613a69b86c6ac1badd74b4
|
| --- a/tools/site_compare/scrapers/firefox/__init__.py
|
| +++ b/tools/site_compare/scrapers/firefox/__init__.py
|
| @@ -1,11 +1,10 @@
|
| -#!/usr/bin/python2.4
|
| -#
|
| -# Copyright 2007 Google Inc. All Rights Reserved.
|
| +#!/usr/bin/env python
|
| +# Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
|
|
| """Selects the appropriate scraper for Firefox."""
|
|
|
| -__author__ = 'jhaas@google.com (Jonathan Haas)'
|
| -
|
|
|
| def GetScraper(version):
|
| """Returns the scraper module for the given version.
|
| @@ -23,9 +22,7 @@ def GetScraper(version):
|
| # We only have one version of the Firefox scraper for now
|
| return __import__("firefox2", globals(), locals(), [''])
|
|
|
| +
|
| # if invoked rather than imported, test
|
| if __name__ == "__main__":
|
| - version = "2.0.0.6"
|
| -
|
| print GetScraper("2.0.0.6").version
|
| -
|
|
|