fix pylint error with python3.x on ubuntu20.04 01/297201/2 sandbox/wangbiao/py3_version
authorbiao716.wang <biao716.wang@samsung.com>
Fri, 11 Aug 2023 11:02:07 +0000 (20:02 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Fri, 11 Aug 2023 11:11:52 +0000 (20:11 +0900)
Change-Id: Iff87b0fa1678c64951b063814323a85a9df72d60
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
gitbuildsys/errors.py

index 305ddf7..f1cf161 100644 (file)
@@ -26,15 +26,14 @@ class CmdError(Exception):
     keyword = ''
 
     def __str__(self):
-        return self.keyword + str(self.args[0])
+        return self.keyword + str(self.args[0]) # pylint: disable=unsubscriptable-object
 
 class Usage(CmdError):
     """Usage error. Raised only by remotebuild."""
     keyword = '<usage>'
 
     def __str__(self):
-        return self.keyword + str(self.args[0]) + \
-                ', please use "--help" for more info'
+        return self.keyword + str(self.args[0]) + ', please use "--help" for more info' # pylint: disable=unsubscriptable-object
 
 class ConfigError(CmdError):
     """Config parsing error. Raised only by conf module."""