]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Py3: remove __getslice__ method 196/head
authorMartin Basti <martin.basti@gmail.com>
Tue, 2 Aug 2016 19:21:27 +0000 (21:21 +0200)
committerMartin <martin.basti@gmail.com>
Thu, 4 Aug 2016 23:34:11 +0000 (01:34 +0200)
commit9cd52c285461ac6e64644fdb4195d14e11c94db9
tree85d1b3fa048d0fed698f076e6c5b9a2bfb891bdb
parent5ea92537d776687e1718a3fba11ff5509166f6e8
Py3: remove __getslice__ method

__getslice__ is deprecated in py2 and it is not used in py3 at all.
Instead of this __getitem__ with slice() index should be used.

Please note that WireData class must still use __getslice__, because it
inherites from 'binary_type' class that has implemented __getslice__
thus this method has to be overriden in WireData class.
dns/name.py
dns/resolver.py
dns/set.py
dns/wiredata.py
pylintrc
tests/test_wiredata.py [new file with mode: 0644]