From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 63E0257570D; Thu, 3 Aug 2023 17:31:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 63E0257570D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1691073114; bh=oGjjSjr60DkKN3j+dNU3APYTCsK9D7URcLj40v9kxb0=; h=Date:To:Cc:References:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=wexzBQVG9kep8E9kLhhcpIjBdGBjGHIYNROb3AN45sUlR7NaB7BEnMU97wAZCVZ1J 2Cnr476nWD7gHfb9qv+27WxIv4B7PGjpyJGkiCCvgSzKq1IAKKW4FegpNTgZusNcb+ tMc6uU5Cwj6tkAzY+xrgzad2kyM6vc3H5ErWQzkM= Received: from smtpng1.i.mail.ru (smtpng1.i.mail.ru [94.100.181.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id EA6B6575713 for ; Thu, 3 Aug 2023 17:29:56 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org EA6B6575713 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1qRZKu-00073q-8i; Thu, 03 Aug 2023 17:29:56 +0300 Message-ID: Date: Thu, 3 Aug 2023 17:29:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: Igor Munkin , Maxim Kokryashkin Cc: tarantool-patches@dev.tarantool.org References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD969E04B5EED670DC804E38A5F9341E5D8C5E4A5EF3DB2E749182A05F538085040F76AA0E15F011C7FEBAD833611A67D076567E83CBECB02757C952FF63379FB6B X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7AED985C8E545F588EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637C867FEFF36BCDF178638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D83BC0D29A09A9051332A612D2B4761BC6117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC60CDF180582EB8FBA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F4460429728776938767073520437C869540D2AB0FE5D25F19253116ADD2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269176DF2183F8FC7C0D75EB778CE7D8A0C68655334FD4449CB33AC447995A7AD18A91E23F1B6B78B78D5E8D9A59859A8B6F7FD1A3A8AE6177F089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: 0D63561A33F958A5297436A6719CD59452E219D679D38462D139F4DF1888F80DF87CCE6106E1FC07E67D4AC08A07B9B0E753FA5741D1AD02CB5012B2E24CD356 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFEDA07BE5F7A5736985E22B0CC09CA58A6B1AF75380E06A17B2018F774C63121B500AA17B1AA25A4F8553022043D0BC9AE83DD2A11F38E0D4EA4D0243BEA25285E48CAC7CA610320002C26D483E81D6BE0DBAE6F56676BC7117BB6831D7356A2DEC5B5AD62611EEC62B5AFB4261A09AF0 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojcir52QaMQ82E0d+a7IIJLA== X-DA7885C5: E2C6EBE4A96A8730321B3B8C7D0B8E7B16016B483CB45E1CA308C1C7C1956D0A262E2D401490A4A0DB037EFA58388B346E8BC1A9835FDE71 X-Mailru-Sender: 689FA8AB762F73930F533AC2B33E986B5DB88549E289C4330C5D8939738B6AB5DD788429FD8613638ED9BB8B05EE7B3AFB559BB5D741EB96D19CD4E7312BAA970A04DAD6CC59E3365FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok Subject: Re: [Tarantool-patches] [PATCH luajit 13/15] test: fix E722 errors by pycodestyle X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Bronnikov via Tarantool-patches Reply-To: Sergey Bronnikov Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" LGTM On 8/3/23 10:30, Igor Munkin wrote: > Fixed 4 occurrences of E722 ("do not use bare 'except'") error reported > by pycodestyle[1]. Since no particular exception type should be handled, > the base Exception class is chosen. > > [1]: https://www.flake8rules.com/rules/E722.html > > Signed-off-by: Igor Munkin > --- > src/luajit-gdb.py | 6 +++--- > src/luajit_lldb.py | 2 +- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/src/luajit-gdb.py b/src/luajit-gdb.py > index 8e786528..a0c8f24e 100644 > --- a/src/luajit-gdb.py > +++ b/src/luajit-gdb.py > @@ -838,14 +838,14 @@ def init(commands): > # Try to remove the callback at first to not append duplicates to > # gdb.events.new_objfile internal list. > disconnect(load) > - except: > + except Exception: > # Callback is not connected. > pass > > try: > # Detect whether libluajit objfile is loaded. > gdb.parse_and_eval('luaJIT_setmode') > - except: > + except Exception: > gdb.write('luajit-gdb.py initialization is postponed ' > 'until libluajit objfile is loaded\n') > # Add a callback to be executed when the next objfile is loaded. > @@ -856,7 +856,7 @@ def init(commands): > LJ_64 = str(gdb.parse_and_eval('IRT_PTR')) == 'IRT_P64' > LJ_FR2 = LJ_GC64 = str(gdb.parse_and_eval('IRT_PGC')) == 'IRT_P64' > LJ_DUALNUM = gdb.lookup_global_symbol('lj_lib_checknumber') is not None > - except: > + except Exception: > gdb.write('luajit-gdb.py failed to load: ' > 'no debugging symbols found for libluajit\n') > return > diff --git a/src/luajit_lldb.py b/src/luajit_lldb.py > index e481cfa0..4787c62c 100644 > --- a/src/luajit_lldb.py > +++ b/src/luajit_lldb.py > @@ -1096,7 +1096,7 @@ def configure(debugger): > LJ_64 = member.unsigned & 0x1f == IRT_P64 > if member.name == 'IRT_PGC': > LJ_FR2 = LJ_GC64 = member.unsigned & 0x1f == IRT_P64 > - except: > + except Exception: > print('luajit_lldb.py failed to load: ' > 'no debugging symbols found for libluajit') > return