Index: third_party/gsutil/gslib/no_op_credentials.py |
diff --git a/third_party/mapreduce/mapreduce/operation/__init__.py b/third_party/gsutil/gslib/no_op_credentials.py |
similarity index 58% |
copy from third_party/mapreduce/mapreduce/operation/__init__.py |
copy to third_party/gsutil/gslib/no_op_credentials.py |
index eedcc8cd00764236da1357197e3f91c924ceee96..ad0fc87a868ea8b8701c4706f90265c0ee5f0b17 100644 |
--- a/third_party/mapreduce/mapreduce/operation/__init__.py |
+++ b/third_party/gsutil/gslib/no_op_credentials.py |
@@ -1,6 +1,5 @@ |
-#!/usr/bin/env python |
-# |
-# Copyright 2010 Google Inc. |
+# -*- coding: utf-8 -*- |
+# Copyright 2014 Google Inc. All Rights Reserved. |
# |
# Licensed under the Apache License, Version 2.0 (the "License"); |
# you may not use this file except in compliance with the License. |
@@ -13,19 +12,19 @@ |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
# See the License for the specific language governing permissions and |
# limitations under the License. |
+"""No-op implementation of credentials for JSON HTTP requests.""" |
+ |
+from __future__ import absolute_import |
-"""Operations which can be yielded from mappers. |
-Operation is callable that takes context.Context as a parameter. |
-Operations are called during mapper execution immediately |
-on recieving from handler function. |
-""" |
+class NoOpCredentials(object): |
+ def __init__(self): |
+ pass |
+ def authorize(self, http_obj): # pylint: disable=invalid-name |
+ return http_obj |
-# These are all relative imports. |
-import db |
-import counters |
-from base import Operation |
+ def set_store(self, store): # pylint: disable=invalid-name |
+ pass |
-__all__ = ['db', 'counters', 'Operation'] |