From: Bob Halley Date: Tue, 30 May 2017 19:01:35 +0000 (-0700) Subject: update pylint settings for latest pylint X-Git-Tag: v1.16.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebc3b75248d86cc5dca79833aabd5062d2292417;p=thirdparty%2Fdnspython.git update pylint settings for latest pylint --- diff --git a/pylintrc b/pylintrc index 474f9157..8a8ec2a5 100644 --- a/pylintrc +++ b/pylintrc @@ -11,6 +11,9 @@ enable= all, python3 +# It's worth looking at len-as-condition for optimization, but it's disabled +# here as it is not a correctness thing. + disable= R, I, @@ -34,7 +37,7 @@ disable= unused-variable, wrong-import-order, wrong-import-position, - + len-as-condition, [REPORTS] diff --git a/tests/test_name.py b/tests/test_name.py index cb7dee02..85007b3b 100644 --- a/tests/test_name.py +++ b/tests/test_name.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. +# Copyright (C) 2003-2017 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, @@ -27,7 +27,7 @@ import dns.name import dns.reversename import dns.e164 -# pylint: disable=line-too-long +# pylint: disable=line-too-long,unsupported-assignment-operation class NameTestCase(unittest.TestCase):