Skip to content

Commit

Permalink
[fix] Nested messages with a package should build. (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesneeringer committed Dec 27, 2018
1 parent 1d3f9db commit 4be0ef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion proto/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def __new__(mcls, name, bases, attrs):
if len(local_path) == 1:
file_info.descriptor.message_type.add().MergeFrom(desc)
else:
file_info.nested[tuple(full_name.split('.'))] = desc
file_info.nested[local_path] = desc

# Create the MessageInfo instance to be attached to this message.
attrs['_meta'] = _MessageInfo(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

setup(
name='proto-plus',
version='0.2.0',
version='0.2.1',
license='Apache 2.0',
author='Luke Sneeringer',
author_email='lukesneeringer@google.com',
Expand Down

0 comments on commit 4be0ef2

Please sign in to comment.