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

Unified Diff: third_party/protobuf26/descriptor.py

Issue 1162993005: Renamed google.protobuf to protobuf26 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Addressed comments Created 5 years, 7 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
« no previous file with comments | « third_party/protobuf26/compiler/plugin_pb2.py ('k') | third_party/protobuf26/descriptor_database.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/protobuf26/descriptor.py
diff --git a/third_party/google/protobuf/descriptor.py b/third_party/protobuf26/descriptor.py
similarity index 99%
rename from third_party/google/protobuf/descriptor.py
rename to third_party/protobuf26/descriptor.py
index 555498d5ad24d94ba55d5e8ed45bb742d152e58c..109a09d9922a1d9ec516395a2cd3c4750c6a8658 100644
--- a/third_party/google/protobuf/descriptor.py
+++ b/third_party/protobuf26/descriptor.py
@@ -38,7 +38,7 @@ file, in types that make this information accessible in Python.
__author__ = 'robinson@google.com (Will Robinson)'
-from google.protobuf.internal import api_implementation
+from protobuf26.internal import api_implementation
if api_implementation.Type() == 'cpp':
@@ -47,9 +47,9 @@ if api_implementation.Type() == 'cpp':
import uuid
if api_implementation.Version() == 2:
- from google.protobuf.pyext import _message
+ from protobuf26.pyext import _message
else:
- from google.protobuf.internal import cpp_message
+ from protobuf26.internal import cpp_message
class Error(Exception):
@@ -106,7 +106,7 @@ class DescriptorBase(object):
"""
if self._options:
return self._options
- from google.protobuf import descriptor_pb2
+ from protobuf26 import descriptor_pb2
try:
options_class = getattr(descriptor_pb2, self._options_class_name)
except AttributeError:
@@ -774,7 +774,7 @@ def MakeDescriptor(desc_proto, package='', build_file_if_cpp=True):
# definition in the C++ descriptor pool. To do this, we build a
# FileDescriptorProto with the same definition as this descriptor and build
# it into the pool.
- from google.protobuf import descriptor_pb2
+ from protobuf26 import descriptor_pb2
file_descriptor_proto = descriptor_pb2.FileDescriptorProto()
file_descriptor_proto.message_type.add().MergeFrom(desc_proto)
« no previous file with comments | « third_party/protobuf26/compiler/plugin_pb2.py ('k') | third_party/protobuf26/descriptor_database.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698