Commit 78a3eb22 authored by Jérome Perrin's avatar Jérome Perrin

patches/pylint: fix regression with namedtuples

with namedtuples and unicode literals enabled, our patch break with:

  Module py2stdlib, line 266, in infer_named_tuple
    ''' % {'name': name, 'fields': attributes})
  Module Products.ERP5Type.patches.pylint, line 74, in string_build
    encoding = _guess_encoding(data)
  Module astroid.builder, line 65, in _guess_encoding
    if string.startswith('\xef\xbb\xbf'):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 0: ordinal not in range(128)
parent 3d8f2a5a
Pipeline #6585 failed with stage
in 0 seconds