]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Remove redundant assignment in .../engine/create.py
authorPedro Cunial <pedro.campos@quintoandar.com.br>
Mon, 28 Oct 2019 19:27:44 +0000 (15:27 -0400)
committersqla-tester <sqla-tester@sqlalchemy.org>
Mon, 28 Oct 2019 19:27:44 +0000 (15:27 -0400)
<!-- Provide a general summary of your proposed changes in the Title field above -->

### Description
<!-- Describe your changes in detail -->

Remove a redundant assignment in the engine creation file.

### 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: #4944
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4944
Pull-request-sha: 4a0e6206f0ae5ff5350ecaa6f998bc3dc0c26cdd

Change-Id: Ie491b071e3392334947d3b8ba84c7323c1b15b6e

lib/sqlalchemy/engine/create.py

index ed3d452e0ec048bbc7244bb5fbf267c2319aea08..fd6105561e176fef5fe05a38d91eeb9a8d8dc0b8 100644 (file)
@@ -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