From 0b369f481a7a98f614065befe00e3fec34367b0c Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Mon, 27 Jun 2016 00:03:54 +0200 Subject: [PATCH] Pylint: enable old-division check --- dns/name.py | 2 +- dns/rdtypes/ANY/LOC.py | 2 ++ pylintrc | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dns/name.py b/dns/name.py index 5d017a35..2a6ba992 100644 --- a/dns/name.py +++ b/dns/name.py @@ -35,7 +35,7 @@ from ._compat import long, binary_type, text_type, unichr try: maxint = sys.maxint except: - maxint = (1 << (8 * struct.calcsize("P"))) / 2 - 1 + maxint = (1 << (8 * struct.calcsize("P"))) // 2 - 1 NAMERELN_NONE = 0 NAMERELN_SUPERDOMAIN = 1 diff --git a/dns/rdtypes/ANY/LOC.py b/dns/rdtypes/ANY/LOC.py index fbfcd70f..a32d6db9 100644 --- a/dns/rdtypes/ANY/LOC.py +++ b/dns/rdtypes/ANY/LOC.py @@ -13,6 +13,8 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +from __future__ import division + import struct import dns.exception diff --git a/pylintrc b/pylintrc index ef48d5aa..c9b4f966 100644 --- a/pylintrc +++ b/pylintrc @@ -33,7 +33,6 @@ disable= missing-docstring, no-absolute-import, no-member, - old-division, protected-access, redefined-builtin, round-builtin, -- 2.47.3