On 03/30/2015 07:12 AM, Jan Cholasta wrote:
Dne 28.3.2015 v 00:05 Petr Vobornik napsal(a):
On 27.3.2015 14:58, David Kupka wrote:
pylint changed slightly so we must react otherwise we'll be unable to
build freeipa rpms on Fedora 22. This patch should go to master for sure
but I don't know if we want it in 4.1.
ACK
Are all the new disables really just false positives?
It seems to me as a false positives.
1. ipalib/plugins/otptoken.py:552: [E1101(no-member),
otptoken_sync.forward] Module 'ssl' has no 'PROTOCOL_TLSv1' member)
>>> import ssl
>>> ssl.PROTOCOL_TLSv1
3
2. ipaserver/install/ipa_otptoken_import.py:63: [E1101(no-member),
convertDate] Instance of 'tuple' has no 'tzinfo' member)
ipaserver/install/ipa_otptoken_import.py:64: [E1101(no-member),
convertDate] Instance of 'tuple' has no 'timetuple' member)
dateutil.parser.parse() returns datetime.datetime object and it has
both tzinfo and timetuple methods
(https://docs.python.org/2/library/datetime.html#datetime-objects)
3. ipapython/dnssec/ldapkeydb.py:26: [E1127(invalid-slice-index),
uri_escape] Slice index is not an int, None, or instance with __index__)
This is the line lint is complaining about:
out += '%'.join(hexval[i:i+2] for i in range(0, len(hexval), 2))
I don't see a chance for 'i' or 'i+1' to be anything else than integers.
tested on:
- F21: ipa-4-1, master branch
- F22: master branch.
IMHO it could got to ipa-4-1 branch because of FreeIPA 4.1.4 in F22
--
David Kupka
--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code