]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Set a reading order to the compatibility import file
authorAgam Rafaeli <agam.rafaeli@gmail.com>
Mon, 17 Dec 2018 16:20:09 +0000 (11:20 -0500)
committersqla-tester <sqla-tester@sqlalchemy.org>
Mon, 17 Dec 2018 16:20:09 +0000 (11:20 -0500)
commit99fc012d727da637f05e9b6aa5e7a1b80ef401ff
tree5ee1a80c6ed5d69962ad92d5a7706e1b52135284
parentd4a130bb1b92869efe33675262c7b1fde364e477
Set a reading order to the compatibility import file

The order is as follows:
1. Imports, in the same format of "import X"
2. Members denoting versions of python
3. Members of imports that are shadowed for usage across the system
4. Global variables
5. If conditions of imports. (internally organized by this order)
6. Function definitions

Closes: #4409
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4409
Pull-request-sha: a7eb52d39f9758572e6a3314865bb633260aa8e1

Change-Id: I2fa44d1aebd7575df968f2e3f3fc7d474fa3c6d7
lib/sqlalchemy/util/compat.py