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

Unified Diff: gslib/no_op_auth_plugin.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 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 | « gslib/name_expansion.py ('k') | gslib/no_op_credentials.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gslib/no_op_auth_plugin.py
===================================================================
--- gslib/no_op_auth_plugin.py (revision 33376)
+++ gslib/no_op_auth_plugin.py (working copy)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,15 +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 authorization plugin allowing boto anonymous access.
-# This code implements a no-op auth plugin, which allows users to use
-# gsutil for accessing publicly readable buckets and objects without first
-# signing up for an account.
+This allows users to use gsutil for accessing publicly readable buckets and
+objects without first signing up for an account.
+"""
+from __future__ import absolute_import
+
from boto.auth_handler import AuthHandler
class NoOpAuth(AuthHandler):
+ """No-op authorization plugin class."""
capability = ['s3']
« no previous file with comments | « gslib/name_expansion.py ('k') | gslib/no_op_credentials.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698