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

Unified Diff: third_party/grpc/src/python/grpcio/grpc/framework/base/__init__.py

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/grpc/src/python/grpcio/grpc/framework/base/__init__.py
diff --git a/third_party/protobuf/python/google/protobuf/__init__.py b/third_party/grpc/src/python/grpcio/grpc/framework/base/__init__.py
old mode 100755
new mode 100644
similarity index 81%
copy from third_party/protobuf/python/google/protobuf/__init__.py
copy to third_party/grpc/src/python/grpcio/grpc/framework/base/__init__.py
index 533821c16a3a4e39005ed2d44d9abf24cb864d1a..bff74be2c7bbc79e3e32103436c9fbd708bf2c03
--- a/third_party/protobuf/python/google/protobuf/__init__.py
+++ b/third_party/grpc/src/python/grpcio/grpc/framework/base/__init__.py
@@ -1,6 +1,5 @@
-# Protocol Buffers - Google's data interchange format
-# Copyright 2008 Google Inc. All rights reserved.
-# https://developers.google.com/protocol-buffers/
+# Copyright 2015, Google Inc.
+# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
@@ -28,6 +27,9 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Copyright 2007 Google Inc. All Rights Reserved.
+import warnings
-__version__ = '3.0.0b2'
+warnings.simplefilter('always', DeprecationWarning)
+warnings.warn('the alpha API (includes this package) is deprecated, '
+ 'unmaintained, and no longer tested. Please migrate to the beta '
+ 'API.', DeprecationWarning, stacklevel=2)

Powered by Google App Engine
This is Rietveld 408576698