From 3afc28d6ce3903b9d4126d0e69c1fbb1fa57901e Mon Sep 17 00:00:00 2001 From: Piotr Jachowicz Date: Wed, 19 Aug 2020 08:21:03 +0200 Subject: [PATCH 1/2] Make __init__.py compatible with pkgutil-style namespace Fixes https://github.com/Azure/azure-sdk-for-python/issues/13187 --- .../azure-eventhub/azure/eventhub/extensions/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py b/sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py index e69de29bb2d1d..fa4f9cf4befe3 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) From 372bf6b6b9314d688eca5b5a56df0264c78d6618 Mon Sep 17 00:00:00 2001 From: Yunhao Ling Date: Mon, 14 Sep 2020 13:00:41 -0700 Subject: [PATCH 2/2] fix pylint and add license info --- .../azure-eventhub/azure/eventhub/extensions/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py b/sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py index fa4f9cf4befe3..f70db896c6150 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/extensions/__init__.py @@ -1 +1,5 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore