]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Tweak code-style and readability in `events/base.py`
authorIwo Herka <hi@iwoherka.eu>
Fri, 2 Nov 2018 18:06:25 +0000 (19:06 +0100)
committerIwo Herka <hi@iwoherka.eu>
Fri, 2 Nov 2018 18:06:25 +0000 (19:06 +0100)
commit9a29ae2267e957199e2b1cc9ec719edccdd9ed9d
treecf490313247078dfaeef38909e3ed7aba8bdd409
parentbc7c212370621a26629392cf247492c773fa63fd
Tweak code-style and readability in `events/base.py`

This includes a few low-key, syntax-level tweaks and:

1. Rewrite of the if-statment in `Events._accept_with`.
2. Property name change, i.e. from `dispatcher.dispatch_cls` to
`dispatcher.dispatch`. In this case postfix `_cls` is confusing as
the property is not a class, but an instance of one.
lib/sqlalchemy/event/base.py