diff options
author | Victor Stinner <vstinner@redhat.com> | 2015-07-28 12:55:39 +0200 |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2015-07-28 12:56:52 +0200 |
commit | 1384e901b00ab8c802c47a3db7ddeb1df5604457 (patch) | |
tree | 92ff66a19ea0b51ddb1a3b4c4a328b364fef3f3d /migrate/changeset | |
parent | 8252703f56d394743199e702c38f1ecc1db590e5 (diff) | |
download | sqlalchemy-migrate-1384e901b00ab8c802c47a3db7ddeb1df5604457.tar.gz |
Add VerNum.__index__() for Python 3 support
On Python 3, some functions like range() don't try to call the __int__()
method to cast an object to integer, but try instead the __index__()
method.
Add an __index__() method to mimick correctly the int type on Python 3.
Change-Id: I8df116d80e201778714a59367600eaef644266ed
Diffstat (limited to 'migrate/changeset')
0 files changed, 0 insertions, 0 deletions