From: Pedro Cunial Date: Mon, 28 Oct 2019 19:27:44 +0000 (-0400) Subject: Remove redundant assignment in .../engine/create.py X-Git-Tag: rel_1_4_0b1~646^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac1d61f0aeeb8c856a0b103998e0458b40c79ac9;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Remove redundant assignment in .../engine/create.py ### Description Remove a redundant assignment in the engine creation file. ### Checklist 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: #` 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: #` in the commit message - please include tests. **Have a nice day!** Closes: #4944 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4944 Pull-request-sha: 4a0e6206f0ae5ff5350ecaa6f998bc3dc0c26cdd Change-Id: Ie491b071e3392334947d3b8ba84c7323c1b15b6e --- diff --git a/lib/sqlalchemy/engine/create.py b/lib/sqlalchemy/engine/create.py index ed3d452e0e..fd6105561e 100644 --- a/lib/sqlalchemy/engine/create.py +++ b/lib/sqlalchemy/engine/create.py @@ -504,8 +504,6 @@ def create_engine(url, **kwargs): else: if isinstance(pool, poollib.dbapi_proxy._DBProxy): pool = pool.get_pool(*cargs, **cparams) - else: - pool = pool pool._dialect = dialect