From 153d00385d004242e96741cdc81b5c0fbd08564b Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 9 Jan 2020 12:07:52 +0200 Subject: [PATCH] Update also place that generates the code --- pubsub/synth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pubsub/synth.py b/pubsub/synth.py index a65bf2bf4f56f..88ac4a8d4f7e2 100644 --- a/pubsub/synth.py +++ b/pubsub/synth.py @@ -127,10 +127,10 @@ "google/cloud/pubsub_v1/gapic/publisher_client.py", "class PublisherClient", """# TODO: remove conditional import after Python 2 support is dropped -if six.PY3: - from collections.abc import Mapping -else: +if six.PY2: from collections import Mapping +else: + from collections.abc import Mapping def _merge_dict(d1, d2):