summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/sqlite
diff options
context:
space:
mode:
authorNathaniel Knight <nknight@cfenet.ubc.ca>2018-07-31 21:59:47 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2018-08-01 12:30:09 -0400
commita51b0528d3dca59e655e4d19b50bb271015f8196 (patch)
tree5a50c4981c5dbd71e4a0a4cbde252b8571d4f180 /lib/sqlalchemy/dialects/sqlite
parent1c32206120b1a6555f8bb7a20a0c4c53ea2f52a8 (diff)
downloadsqlalchemy-a51b0528d3dca59e655e4d19b50bb271015f8196.tar.gz
Fix collections ABC access before Python 3.8
Started importing "collections" from "collections.abc" under Python 3.3 and greater for Python 3.8 compatibility. Pull request courtesy Nathaniel Knight. In Python 3.3, the abstract base classes (Iterable, Mapping, etc.) were moved from the `collections` module and put in the `collections.abc` module. They remain in the `collections` module for backwards compatibility, and will until Python 3.8. This commit adds a variable (`collections_abc`) to the `util/compat` module, which will be the `collections` module for Python < 3.3 and before, or the `collections.abc` module for Python >= 3.3. It also uses the new variable, getting rid of some deprecation warnings that were seen when running under Python 3.7. Change-Id: I2d1c0ef97c8ecac7af152cc56263422a40faa6bb Pull-request: https://github.com/zzzeek/sqlalchemy/pull/464
Diffstat (limited to 'lib/sqlalchemy/dialects/sqlite')
0 files changed, 0 insertions, 0 deletions