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

Unified Diff: third_party/gsutil/gslib/no_op_credentials.py

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 years, 3 months 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
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']
« no previous file with comments | « third_party/gsutil/gslib/no_op_auth_plugin.py ('k') | third_party/gsutil/gslib/parallelism_framework_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698