[Freeipa-devel] [PATCHES] More Python 3 porting
Petr Viktorin
pviktori at redhat.com
Wed Sep 30 08:25:16 UTC 2015
On 09/23/2015 04:46 PM, Petr Viktorin wrote:
> On 09/22/2015 02:59 PM, David Kupka wrote:
>> On 18/09/15 17:00, Petr Viktorin wrote:
>>> Hello,
>>> Here are more patches that bring IPA closer to Python 3 compatibility.
>>>
>>>
>>>
>>>
>>
>> Hi Petr,
>> thanks for another batch of Python 3 compatibility patches.
>> Unfortunately I hit a lot of pylint errors. Some of them are false
>> positives for sure. Could you please look at them, mark the false
>> positive with "pylint: disable=Exxxx" directive and fix the rest?
>>
>> http://fpaste.org/270090/92665414/
>>
>
> Thanks.
> I'm actually having some trouble running pylint on an f23 machine; have
> you seen this error before?
>
> $ ./make-lint
> Traceback (most recent call last):
> File "./make-lint", line 280, in <module>
> sys.exit(main())
> File "./make-lint", line 251, in main
> linter.check(files)
> File "/usr/lib/python2.7/site-packages/pylint/lint.py", line 747, in check
> self._do_check(files_or_modules)
> File "/usr/lib/python2.7/site-packages/pylint/lint.py", line 869, in
> _do_check
> self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
> File "/usr/lib/python2.7/site-packages/pylint/lint.py", line 924, in
> check_astroid_module
> tokens = utils.tokenize_module(ast_node)
> File "/usr/lib/python2.7/site-packages/pylint/utils.py", line 137, in
> tokenize_module
> with module.stream() as stream:
> AttributeError: 'Module' object has no attribute 'stream'
>
>
> Anyway, I've ran pylint on f21. Updated patches attached.
ping, could someone take a look at the patches?
--
Petr Viktorin
More information about the Freeipa-devel
mailing list