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 6650F56236F; Thu, 3 Aug 2023 10:50:27 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 6650F56236F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1691049027; bh=/kf6wAWKRA7zJUX17/+RSF2/Ay297H62rITm0jZ5l4U=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=KOfZ9/j0TYCESQ89DvviNs/xyYpiPDTT7KwvbrpSuLvQjwb/NCquwWEmMtSP8/hwA /KUVI01Bn+KBsy4Jwii8S7oxA1GQ7nI+xX+97OTm25mYSeQy3HdCDOJxb+ts1x4zr4 IOIA4xjmEyMMxAiQqzZUwdzNdhCFltKYyBx6kOdw= Received: from smtp58.i.mail.ru (smtp58.i.mail.ru [95.163.41.96]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 32575562376 for ; Thu, 3 Aug 2023 10:44:13 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 32575562376 Received: by smtp58.i.mail.ru with esmtpa (envelope-from ) id 1qRT0E-000EDQ-30; Thu, 03 Aug 2023 10:44:11 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Thu, 3 Aug 2023 07:30:38 +0000 Message-Id: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-4EC0790: 10 X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD93761F2630DFFAF4106610A4783CEB24278EC05A2247AC8B7182A05F5380850409ACCA360CB43DC2F35F8C46F8B6DE49034C694E1D27ACC4EEED517266748298B X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE77E216A0E97507353EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063781E06E36B00F36668638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D80DC32BB6A430A5019F93F3BA55E2A6CB117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC55B19328CBC4F849A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F4460429728776938767073520437C869540D2AB0F6FD1C55BDD38FC3FD2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE1E561CDFBCA1751F040F9FF01DFDA4A84AD6D5ED66289B523666184CF4C3C14F6136E347CC761E07725E5C173C3A84C3A333A05395E4745B76E601842F6C81A1F004C906525384303E02D724532EE2C3F43C7A68FF6260569E8FC8737B5C2249957A4DEDD2346B42E827F84554CEF50127C277FBC8AE2E8B2EE5AD8F952D28FBAAAE862A0553A39223F8577A6DFFEA7CC1948A84299AD5C643847C11F186F3C59DAA53EE0834AAEE X-C1DE0DAB: 0D63561A33F958A53F611A465E67E27543F7D6B393291FE08B81E981850A5325F87CCE6106E1FC07E67D4AC08A07B9B0DB8A315C1FF4794DC79554A2A72441328621D336A7BC284946AD531847A6065A17B107DEF921CE79BDAD6C7F3747799A X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF7A4FDCB843EF00A0C81CA2003E7F94C70D1582C34BF3BDC3A4DDBA12441A94FE4A7F0923522A066E8553022043D0BC9A79981FBB0A75EAEF4DD86D96CF2DBD51A74DFFEFA5DC0E7F02C26D483E81D6BEECAEF3E2CCC1ED8C383653B6C8D9AE0FD16FCAA6493B703A X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojcir52QaMQ83y7LtaiVkmAg== X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D531C55F6AC43F6B03282D4C6FE1629FDB4390C8A40EF5FCDEA92326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: [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: Igor Munkin via Tarantool-patches Reply-To: Igor Munkin Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" 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 -- 2.30.2