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

Side by Side Diff: tools/site_compare/operators/__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 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/site_compare/drivers/win32/windowing.py ('k') | tools/site_compare/operators/equals.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python2.4 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # 2 # Use of this source code is governed by a BSD-style license that can be
3 # Copyright 2007 Google Inc. All Rights Reserved. 3 # found in the LICENSE file.
4 4
5 """Selects the appropriate operator.""" 5 """Selects the appropriate operator."""
6 6
7 __author__ = 'jhaas@google.com (Jonathan Haas)'
8
9 7
10 def GetOperator(operator): 8 def GetOperator(operator):
11 """Given an operator by name, returns its module. 9 """Given an operator by name, returns its module.
12 10
13 Args: 11 Args:
14 operator: string describing the comparison 12 operator: string describing the comparison
15 13
16 Returns: 14 Returns:
17 module 15 module
18 """ 16 """
19 17
20 # TODO(jhaas): come up with a happy way of integrating multiple operators 18 # TODO(jhaas): come up with a happy way of integrating multiple operators
21 # with different, possibly divergent and possibly convergent, operators. 19 # with different, possibly divergent and possibly convergent, operators.
22 20
23 module = __import__(operator, globals(), locals(), ['']) 21 module = __import__(operator, globals(), locals(), [''])
24 22
25 return module 23 return module
26
OLDNEW
« no previous file with comments | « tools/site_compare/drivers/win32/windowing.py ('k') | tools/site_compare/operators/equals.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698