]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Pylint: enable old-division check
authorMartin Basti <martin.basti@gmail.com>
Sun, 26 Jun 2016 22:03:54 +0000 (00:03 +0200)
committerMartin Basti <martin.basti@gmail.com>
Sun, 26 Jun 2016 23:43:22 +0000 (01:43 +0200)
dns/name.py
dns/rdtypes/ANY/LOC.py
pylintrc

index 5d017a35d53799f9984d34ac9a91a245964929ca..2a6ba992e3c1f5676c05d6c7b7de510df2f9a2ac 100644 (file)
@@ -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
index fbfcd70f36c24685307a9fb2de012984cd65b5d0..a32d6db900852cd4565ccbb76f326de147c886f1 100644 (file)
@@ -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
index ef48d5aae93c2642d808cdcef4c16021a89ccca9..c9b4f966425bf12d64aee3de6c673f86a7069add 100644 (file)
--- a/pylintrc
+++ b/pylintrc
@@ -33,7 +33,6 @@ disable=
     missing-docstring,
     no-absolute-import,
     no-member,
-    old-division,
     protected-access,
     redefined-builtin,
     round-builtin,