Add window.gc back to Smoothness.WillNavigateToPageHook
[chromium-blink-merge.git] / tools / site_compare / operators / __init__.py
blob5d6ffd7555a14656fa333e3d7598057a47925f53
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 """Selects the appropriate operator."""
8 def GetOperator(operator):
9 """Given an operator by name, returns its module.
11 Args:
12 operator: string describing the comparison
14 Returns:
15 module
16 """
18 # TODO(jhaas): come up with a happy way of integrating multiple operators
19 # with different, possibly divergent and possibly convergent, operators.
21 module = __import__(operator, globals(), locals(), [''])
23 return module