diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-01-06 01:14:26 -0500 |
|---|---|---|
| committer | mike bayer <mike_mp@zzzcomputing.com> | 2019-01-06 17:34:50 +0000 |
| commit | 1e1a38e7801f410f244e4bbb44ec795ae152e04e (patch) | |
| tree | 28e725c5c8188bd0cfd133d1e268dbca9b524978 /lib/sqlalchemy/util/__init__.py | |
| parent | 404e69426b05a82d905cbb3ad33adafccddb00dd (diff) | |
| download | sqlalchemy-1e1a38e7801f410f244e4bbb44ec795ae152e04e.tar.gz | |
Run black -l 79 against all source files
This is a straight reformat run using black as is, with no edits
applied at all.
The black run will format code consistently, however in
some cases that are prevalent in SQLAlchemy code it produces
too-long lines. The too-long lines will be resolved in the
following commit that will resolve all remaining flake8 issues
including shadowed builtins, long lines, import order, unused
imports, duplicate imports, and docstring issues.
Change-Id: I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9
Diffstat (limited to 'lib/sqlalchemy/util/__init__.py')
| -rw-r--r-- | lib/sqlalchemy/util/__init__.py | 170 |
1 files changed, 137 insertions, 33 deletions
diff --git a/lib/sqlalchemy/util/__init__.py b/lib/sqlalchemy/util/__init__.py index d8c28d6af..103225e2a 100644 --- a/lib/sqlalchemy/util/__init__.py +++ b/lib/sqlalchemy/util/__init__.py @@ -5,42 +5,146 @@ # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php -from .compat import callable, cmp, reduce, \ - threading, py3k, py33, py36, py2k, jython, pypy, cpython, win32, \ - pickle, dottedgetter, parse_qsl, namedtuple, next, reraise, \ - raise_from_cause, text_type, safe_kwarg, string_types, int_types, \ - binary_type, nested, \ - quote_plus, with_metaclass, print_, itertools_filterfalse, u, ue, b,\ - unquote_plus, unquote, b64decode, b64encode, byte_buffer, itertools_filter,\ - iterbytes, StringIO, inspect_getargspec, zip_longest +from .compat import ( + callable, + cmp, + reduce, + threading, + py3k, + py33, + py36, + py2k, + jython, + pypy, + cpython, + win32, + pickle, + dottedgetter, + parse_qsl, + namedtuple, + next, + reraise, + raise_from_cause, + text_type, + safe_kwarg, + string_types, + int_types, + binary_type, + nested, + quote_plus, + with_metaclass, + print_, + itertools_filterfalse, + u, + ue, + b, + unquote_plus, + unquote, + b64decode, + b64encode, + byte_buffer, + itertools_filter, + iterbytes, + StringIO, + inspect_getargspec, + zip_longest, +) -from ._collections import KeyedTuple, ImmutableContainer, immutabledict, \ - Properties, OrderedProperties, ImmutableProperties, OrderedDict, \ - OrderedSet, IdentitySet, OrderedIdentitySet, column_set, \ - column_dict, ordered_column_set, populate_column_dict, unique_list, \ - UniqueAppender, PopulateDict, EMPTY_SET, to_list, to_set, \ - to_column_set, update_copy, flatten_iterator, has_intersection, \ - LRUCache, ScopedRegistry, ThreadLocalRegistry, WeakSequence, \ - coerce_generator_arg, lightweight_named_tuple, collections_abc, \ - has_dupes +from ._collections import ( + KeyedTuple, + ImmutableContainer, + immutabledict, + Properties, + OrderedProperties, + ImmutableProperties, + OrderedDict, + OrderedSet, + IdentitySet, + OrderedIdentitySet, + column_set, + column_dict, + ordered_column_set, + populate_column_dict, + unique_list, + UniqueAppender, + PopulateDict, + EMPTY_SET, + to_list, + to_set, + to_column_set, + update_copy, + flatten_iterator, + has_intersection, + LRUCache, + ScopedRegistry, + ThreadLocalRegistry, + WeakSequence, + coerce_generator_arg, + lightweight_named_tuple, + collections_abc, + has_dupes, +) -from .langhelpers import iterate_attributes, class_hierarchy, \ - portable_instancemethod, unbound_method_to_callable, \ - getargspec_init, format_argspec_init, format_argspec_plus, \ - get_func_kwargs, get_cls_kwargs, decorator, as_interface, \ - memoized_property, memoized_instancemethod, md5_hex, \ - group_expirable_memoized_property, dependencies, decode_slice, \ - monkeypatch_proxied_specials, asbool, bool_or_str, coerce_kw_type,\ - duck_type_collection, assert_arg_type, symbol, dictlike_iteritems,\ - classproperty, set_creation_order, warn_exception, warn, NoneType,\ - constructor_copy, methods_equivalent, chop_traceback, asint,\ - generic_repr, counter, PluginLoader, hybridproperty, hybridmethod, \ - safe_reraise, quoted_token_parser,\ - get_callable_argspec, only_once, attrsetter, ellipses_string, \ - warn_limited, map_bits, MemoizedSlots, EnsureKWArgType, wrap_callable +from .langhelpers import ( + iterate_attributes, + class_hierarchy, + portable_instancemethod, + unbound_method_to_callable, + getargspec_init, + format_argspec_init, + format_argspec_plus, + get_func_kwargs, + get_cls_kwargs, + decorator, + as_interface, + memoized_property, + memoized_instancemethod, + md5_hex, + group_expirable_memoized_property, + dependencies, + decode_slice, + monkeypatch_proxied_specials, + asbool, + bool_or_str, + coerce_kw_type, + duck_type_collection, + assert_arg_type, + symbol, + dictlike_iteritems, + classproperty, + set_creation_order, + warn_exception, + warn, + NoneType, + constructor_copy, + methods_equivalent, + chop_traceback, + asint, + generic_repr, + counter, + PluginLoader, + hybridproperty, + hybridmethod, + safe_reraise, + quoted_token_parser, + get_callable_argspec, + only_once, + attrsetter, + ellipses_string, + warn_limited, + map_bits, + MemoizedSlots, + EnsureKWArgType, + wrap_callable, +) -from .deprecations import warn_deprecated, warn_pending_deprecation, \ - deprecated, pending_deprecation, inject_docstring_text +from .deprecations import ( + warn_deprecated, + warn_pending_deprecation, + deprecated, + pending_deprecation, + inject_docstring_text, +) # things that used to be not always available, # but are now as of current support Python versions |
