]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Use logging.WARNING instead of logging.WARN
authorZubarev Grigoriy <thirtysix@thirtysix.pw>
Sat, 5 Oct 2024 21:14:02 +0000 (17:14 -0400)
committersqla-tester <sqla-tester@sqlalchemy.org>
Sat, 5 Oct 2024 21:14:02 +0000 (17:14 -0400)
commitbd50ba325b10a1a9cdb452fe40c96f959825797c
tree0f0554c87bde9f362b993bcc8df2f468a785b483
parent9cc68f5e89183e3c5634ac892bf7819dfc90a8d5
Use logging.WARNING instead of logging.WARN

The `WARN` constant is an undocumented alias for `WARNING`. Whilst it’s not deprecated, it’s not mentioned at all in the documentation. This references one of  `flake8-logging` plugins [rule](https://github.com/adamchainz/flake8-logging?tab=readme-ov-file#log009-warn-is-undocumented-use-warning-instead).

<!-- Provide a general summary of your proposed changes in the Title field above -->

### Description
Changed all uses of `logging.WARN` to `logging.WARNING`.

### Checklist
<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)

-->

This pull request is:

- [x] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [ ] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

**Have a nice day!**

Closes: #1548
Pull-request: https://github.com/sqlalchemy/alembic/pull/1548
Pull-request-sha: 249b9a2942037f8da9f2db5736d1d988435b6fe5

Change-Id: I7c64ce9bb18af551c761ed9216713ee02cbbb83b
alembic/templates/async/alembic.ini.mako
alembic/templates/generic/alembic.ini.mako
alembic/templates/multidb/alembic.ini.mako
alembic/testing/env.py
docs/build/tutorial.rst