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 8AA9D562368; Thu, 3 Aug 2023 10:44:56 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8AA9D562368 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1691048696; bh=baJ878tNo9xRV3HfyxnbQ/jHZX8CkRsUon9BpvB0QvM=; 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=uY73bT75cuXr9m04hM4/DGqdy8twjWFzg5rNKOLjoO/731RUa+tsQEJXbcjlga8tM WlcFPjivDf+L7XQp4i3kCWJ3379yc4nC8/ChIDijmQ2P/fnuU/fboLRD9PnVZjDeMf MVW0CLbHbA1Ra6YjPSn6DQS/6I8OT/WYv7fsvXrA= 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 A131F562368 for ; Thu, 3 Aug 2023 10:43:55 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A131F562368 Received: by smtp58.i.mail.ru with esmtpa (envelope-from ) id 1qRSzy-000EDQ-0H; Thu, 03 Aug 2023 10:43:54 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Thu, 3 Aug 2023 07:30:27 +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: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD93761F2630DFFAF415A5C743584A1459476D3DCCE765565A9182A05F5380850405A9A40428F726E3338BF7337F593683A0367674DED877F0F9569D2B47C2698E9 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE789805A6418246A1AEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637DC205F3977E1285D8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D821F8C9B95266B878211CAA898E1FDBA3117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC3A703B70628EAD7BA471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F44604297287769387670735200AC5B80A05675ACDCB629EEF1311BF91D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EEB28585415E75ADA9B2D370F7B14D4BC4D8FC6C240DEA76429C9F4D5AE37F343AA9539A8B242431040A6AB1C7CE11FEE3034D30FDF2F620DB6136E347CC761E07C4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947CB861051D4BA689FC2E808ACE2090B5E1725E5C173C3A84C34964A708C60C975A089D37D7C0E48F6C8AA50765F7900637EC3198ECE464ADAEEFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A502FC649A376790F643F7D6B393291FE064A5F1BB1F066830F87CCE6106E1FC07E67D4AC08A07B9B0A816C540FC8EEC309C5DF10A05D560A950611B66E3DA6D700B0A020F03D25A0997E3FB2386030E77 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CF0AF972604A74CA337551A41216C65CE34B6E5A98FE054F03F73B436F96A35AF8E5920CFB4BEC2A838553022043D0BC9A52C96CD8292E8D9E025E0C0C5275B886A74DFFEFA5DC0E7F02C26D483E81D6BEECAEF3E2CCC1ED8C383653B6C8D9AE0FD16FCAA6493B703A X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojcir52QaMQ81KbL5ZuvuEHw== X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D531159A7E4203E1E03D8FCD16BDDFE55BBBD296256AB654BEBD2326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 02/15] test: fix E128 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 8 occurrences of E128 ("continuation line under-indented for visual indent") error reported by pycodestyle[1]. [1]: https://www.flake8rules.com/rules/E128.html Signed-off-by: Igor Munkin --- src/luajit-gdb.py | 13 ++++++------- src/luajit_lldb.py | 6 +++--- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/luajit-gdb.py b/src/luajit-gdb.py index 96ee2289..b84fdc93 100644 --- a/src/luajit-gdb.py +++ b/src/luajit-gdb.py @@ -118,7 +118,7 @@ def bc_a(ins): def frame_ftsz(framelink): return cast('ptrdiff_t', framelink['ftsz'] if LJ_FR2 \ - else framelink['fr']['tp']['ftsz']) + else framelink['fr']['tp']['ftsz']) def frame_pc(framelink): return cast('BCIns *', frame_ftsz(framelink)) if LJ_FR2 \ @@ -182,11 +182,11 @@ def mref(typename, obj): def gcref(obj): return cast('GCobj *', obj['gcptr64'] if LJ_GC64 - else cast('uintptr_t', obj['gcptr32'])) + else cast('uintptr_t', obj['gcptr32'])) def gcval(obj): return cast('GCobj *', obj['gcptr64'] & LJ_GCVMASK if LJ_GC64 - else cast('uintptr_t', obj['gcptr32'])) + else cast('uintptr_t', obj['gcptr32'])) def gcnext(obj): return gcref(obj)['gch']['nextgc'] @@ -212,9 +212,8 @@ def J(g): typeGG = gtype('GG_State') return cast('jit_State *', int(cast('char *', g)) - - int(typeGG['g'].bitpos / 8) - + int(typeGG['J'].bitpos / 8) - ) + - int(typeGG['g'].bitpos / 8) + + int(typeGG['J'].bitpos / 8)) def vm_state(g): return { @@ -282,7 +281,7 @@ def funcproto(func): assert(func['ffid'] == 0) return cast('GCproto *', - mref('char *', func['pc']) - gdb.lookup_type('GCproto').sizeof) + mref('char *', func['pc']) - gdb.lookup_type('GCproto').sizeof) def gclistlen(root, end=0x0): count = 0 diff --git a/src/luajit_lldb.py b/src/luajit_lldb.py index 77d92785..3f636546 100644 --- a/src/luajit_lldb.py +++ b/src/luajit_lldb.py @@ -355,11 +355,11 @@ def dbg_eval(expr): def gcval(obj): return cast(GCobjPtr, cast('uintptr_t', obj.gcptr & LJ_GCVMASK) if LJ_GC64 - else cast('uintptr_t', obj.gcptr)) + else cast('uintptr_t', obj.gcptr)) def gcref(obj): return cast(GCobjPtr, obj.gcptr if LJ_GC64 - else cast('uintptr_t', obj.gcptr)) + else cast('uintptr_t', obj.gcptr)) def gcnext(obj): return gcref(obj).gch.nextgc @@ -658,7 +658,7 @@ def bc_a(ins): def frame_ftsz(framelink): return vtou64(cast('ptrdiff_t', framelink.ftsz if LJ_FR2 \ - else framelink.fr.tp.ftsz)) + else framelink.fr.tp.ftsz)) def frame_pc(framelink): return cast(BCInsPtr, frame_ftsz(framelink)) if LJ_FR2 \ -- 2.30.2