Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Unified Diff: tools/site_compare/scrapers/ie/__init__.py

Issue 8678023: Fix python scripts in src/tools/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/site_compare/scrapers/firefox/firefox2.py ('k') | tools/site_compare/scrapers/ie/ie7.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/site_compare/scrapers/ie/__init__.py
diff --git a/tools/site_compare/scrapers/ie/__init__.py b/tools/site_compare/scrapers/ie/__init__.py
old mode 100644
new mode 100755
index 8fb95dbfc69b448ac1479fb2f3abf9427a750847..b4dab09e4c2b8b27d2ba8dee55e57a629d2e7f08
--- a/tools/site_compare/scrapers/ie/__init__.py
+++ b/tools/site_compare/scrapers/ie/__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 Internet Explorer."""
-__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 IE scraper for now
return __import__("ie7", globals(), locals(), [''])
+
# if invoked rather than imported, test
if __name__ == "__main__":
- version = "7.0.5370.1"
-
- print GetScraper(version).version
-
+ print GetScraper("7.0.5370.1").version
« no previous file with comments | « tools/site_compare/scrapers/firefox/firefox2.py ('k') | tools/site_compare/scrapers/ie/ie7.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698