Checkpatch.pl warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Regarding the warning of checkpatch.pl,
" 'str' object has no attribute 'decode' "
This warning is related to spdxcheck.py which is because of version of python
In python3 str has no attribute decode(), while it works fine in python2, without any warning.
I checked the patch related to this

https://lore.kernel.org/lkml/20180717190635.29467-1-jcline@xxxxxxxxxx/T/#u

We can resolve the warning by just putting an if statement above line.decode() to resolve the warning.
Am I right or I missed something ?

SHUBHAM SINGH
@shubhsherl

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux