Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslynnwu committed Jul 8, 2020
1 parent 280a362 commit 7d7b28f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apitools/gen/gen_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def testGenClient_SimpleDocEmptyInit(self):
init_file = _GetContent(os.path.join(tmp_dir_path, '__init__.py'))
self.assertEqual("""\"""Package marker file.\"""
from __future__ import absolute_import
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)
Expand Down
2 changes: 1 addition & 1 deletion apitools/gen/service_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def WriteFile(self, printer):
if self.__root_package:
import_prefix = 'from {0} '.format(self.__root_package)
else:
import_prefix = 'from . '
import_prefix = ''
printer('%simport %s as messages', import_prefix,
client_info.messages_rule_name)
printer()
Expand Down

0 comments on commit 7d7b28f

Please sign in to comment.