Skip to content

Commit b6859e6

Browse files
m
1 parent cf6e9ec commit b6859e6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/aws_encryption_sdk/internal/deprecation.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
"""Module containing utilities for deprecated components."""
4-
import warnings
54
import functools
5+
import warnings
66

77

88
def deprecated(reason):
9-
"""
10-
Decorator to apply to classes to emit deprecation warnings.
11-
"""
9+
"""Decorator to apply to classes to emit deprecation warnings."""
1210
def decorator(cls):
1311
# If class does not define init,
1412
# its default init it Python's object.__init__,
@@ -31,4 +29,4 @@ def new_init(self, *args, **kwargs):
3129
cls.__init__ = new_init
3230
return cls
3331

34-
return decorator
32+
return decorator

0 commit comments

Comments
 (0)