aboutsummaryrefslogtreecommitdiffhomepage
path: root/.yardopts
diff options
context:
space:
mode:
authorGravatar Manuel Kroiss <makro@google.com>2017-04-26 17:36:56 +0100
committerGravatar Manuel Kroiss <makro@google.com>2017-04-27 23:42:25 +0100
commit6580894218a5ade10373ce4c18d41e453c9e1c59 (patch)
tree771bcfc46e2691c604b5f99df10e857ce18676a0 /.yardopts
parente7c31edb555399b699261cb6e0b9f83fb3d6d9d9 (diff)
Fix python imports in gRPC generated python code
This changes the import style for proto dependencies from a) to b). a) "import a.b.c as x" b) "from a.b import c as x" Using statement a) causes problems when using __init__ files. If module "a.b" has an __init__.py file which is importing the python generated grpc code "a.b.d", then we cannot import a module named "a.b.c" because the module "a.b" does not exist yet. In this case python will throw: AttributeError: 'module' object has no attribute 'b' This PR adapts the code to use the same logic as in: /google/protobuf/compiler/python/python_generator.cc
Diffstat (limited to '.yardopts')
0 files changed, 0 insertions, 0 deletions