From: Martin Basti Date: Sun, 26 Jun 2016 22:03:54 +0000 (+0200) Subject: Pylint: enable old-division check X-Git-Tag: v1.15.0~42^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b369f481a7a98f614065befe00e3fec34367b0c;p=thirdparty%2Fdnspython.git Pylint: enable old-division check --- 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,