From mboxrd@z Thu Jan 1 00:00:00 1970 From: singhshu@iitk.ac.in (=?UTF-8?B?U2h1YmhhbSBTaW5naA==?=) Date: Sun, 30 Sep 2018 16:04:13 +0300 Subject: =?UTF-8?B?Q2hlY2twYXRjaC5wbCB3YXJuaW5n?= Message-ID: <1538312653.86477263@f27.my.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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 at redhat.com/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 -------------- next part -------------- An HTML attachment was scrubbed... URL: