From ec66ef6e923f27ac8d70cb569bb7df88e72d55f9 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Fri, 11 Aug 2023 20:02:07 +0900 Subject: [PATCH] fix pylint error with python3.x on ubuntu20.04 Change-Id: Iff87b0fa1678c64951b063814323a85a9df72d60 Signed-off-by: biao716.wang --- gitbuildsys/errors.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gitbuildsys/errors.py b/gitbuildsys/errors.py index 305ddf7..f1cf161 100644 --- a/gitbuildsys/errors.py +++ b/gitbuildsys/errors.py @@ -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 = '' 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.""" -- 2.7.4