# flake8: noqa
# pylint: skip-file
"""Python 2/3 compatibility
"""

import sys


PY2 = sys.version_info[0] == 2


if PY2:
    from collections import Iterable

    text_type = unicode
    string_types = (str, unicode)
    integer_types = (int, long)

    def iterkeys(d):
        return d.iterkeys()

    def itervalues(d):
        return d.itervalues()

    def iteritems(d):
        return d.iteritems()
else:
    from collections.abc import Iterable

    text_type = str
    string_types = (str,)
    integer_types = (int,)

    def iterkeys(d):
        return iter(d.keys())

    def itervalues(d):
        return iter(d.values())

    def iteritems(d):
        return iter(d.items())

@@ -1,8 +1,32 @@
+# -*- coding: utf-8 -*-%0A
 # flake8
@@ -89,17 +89,62 @@
 %22%22%0A%0A
-import sy
+from functools import wraps%0A%0Aimport sys%0Aimport warning
 s%0A%0A%0A
@@ -747,12 +747,495 @@
 (d.items())%0A
+%0A%0Adef deprecated(message):%0A    %22%22%22Decorator that will warn when using a deprecated function.%22%22%22%0A    def decorator(func):%0A        @wraps(func)%0A        def decorated(*args, **kargs):%0A            warnings.warn('%7B!r%7D is a deprecated function. %7B%7D'%0A                          .format(func.__name__, message),%0A                          category=DeprecationWarning,%0A                          stacklevel=2)%0A            return func(*args, **kargs)%0A        return decorated%0A    return decorator%0A

Add internal deprecated() decorator.