From 90cf882b20f430499f692e6b9b23497b3555e928 Mon Sep 17 00:00:00 2001 From: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Date: Mon, 12 Apr 2021 16:28:07 -0600 Subject: [PATCH] fix: sort subpackages in %namespace/%name/__init__.py (#836) Small follow up to https://github.com/googleapis/gapic-generator-python/pull/806 --- gapic/templates/%namespace/%name/__init__.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gapic/templates/%namespace/%name/__init__.py.j2 b/gapic/templates/%namespace/%name/__init__.py.j2 index 7ffe67b3fe..ae721dedf0 100644 --- a/gapic/templates/%namespace/%name/__init__.py.j2 +++ b/gapic/templates/%namespace/%name/__init__.py.j2 @@ -46,7 +46,7 @@ from {% if api.naming.module_namespace %}{{ api.naming.module_namespace|join('.' __all__ = ( {%- filter indent %} {% filter sort_lines -%} -{% for subpackage in api.subpackages.keys() -%} +{% for subpackage, _ in api.subpackages|dictsort -%} '{{ subpackage }}', {% endfor -%} {% for service in api.services.values()|sort(attribute='name')