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 E62C3559A16; Thu, 3 Aug 2023 10:45:26 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org E62C3559A16 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1691048727; bh=odfTCkUVNCYwG6Pw81zLS5wICiSpOacOln7FJh9cObc=; 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=SgYVytX9DCqkNFBgl1QeLGc/6/PBoLpRaJMYjAAcQp8v4FkvPnfUn3oOA+fFiz8sX cJMuZHwgeRN0rcCS5GIziCgHuuZAFCIFxMyqyJ9/C7ggVZ8HKW5e0G17RLEyzApmc3 +ObG9ck81EFJhtOv3NNPhnBp7gTKlZjvB34jvw0Y= 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 8009C559A16 for ; Thu, 3 Aug 2023 10:43:56 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 8009C559A16 Received: by smtp58.i.mail.ru with esmtpa (envelope-from ) id 1qRSzy-000EDQ-2X; Thu, 03 Aug 2023 10:43:55 +0300 To: Maxim Kokryashkin , Sergey Bronnikov Date: Thu, 3 Aug 2023 07:30:28 +0000 Message-Id: <7e04eae9eadd01e9bad114c8f63557b1b33afee5.1691047132.git.imun@tarantool.org> 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: 4F1203BC0FB41BD93761F2630DFFAF4185431981269362EF6469B8D275EC18CB182A05F5380850405A9A40428F726E33325CEC2678E6041D20B87983A9C61B31F0935073478B6EB8 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7CF4D16325FBE1EEDEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637DA5CEC9EE7F170198638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D821F8C9B95266B8785D7017E8FCE5EBFF117882F4460429724CE54428C33FAD305F5C1EE8F4F765FC9FC99A4BA45EE8B4A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F4460429728776938767073520CCD848CCB6FE560CF04B652EEC242312D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EEB28585415E75ADA9148812EF9080FC94D8FC6C240DEA76429C9F4D5AE37F343AA9539A8B242431040A6AB1C7CE11FEE389DDFE3E282F3DD19735652A29929C6CC4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947C1D471462564A2E192E808ACE2090B5E1725E5C173C3A84C3ED8438A78DFE0A9E089D37D7C0E48F6C8AA50765F7900637EC3198ECE464ADAEEFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A502FC649A376790F643F7D6B393291FE0F76EBFBB66855357F87CCE6106E1FC07E67D4AC08A07B9B0BFD98ABA943BD70B9C5DF10A05D560A950611B66E3DA6D700B0A020F03D25A0997E3FB2386030E77 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF3FED46C3ACD6F73ED3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFA143CAD072D31B04E8DEDB9E449B34C17EF064EE1E01270922387042A48F08C79B332213384B53538553022043D0BC9A52C96CD8292E8D9EF6B7083B10E20F52A74DFFEFA5DC0E7F02C26D483E81D6BEECAEF3E2CCC1ED8C383653B6C8D9AE0FD16FCAA6493B703A X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojcir52QaMQ81TelopXHiYdg== X-Mailru-Sender: 2FEBA92C8E508479FE7B9A1DF348D531159A7E4203E1E03D8FCD16BDDFE55BBB1D7950FC0AA432A52326FE6F2A341ACE0FB9F97486540B4CD9E8847AB8CFED4D9ABF8A61C016C2CFB0DAF586E7D11B3E67EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH luajit 03/15] test: fix E201 and E202 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 the only occurrence of E202 ("whitespace before ')'"), 7 occurrences of E201 ("whitespace after '['") and 7 occurrences of E202 ("whitespace before ']'") errors reported by pycodestyle[1][2]. [1]: https://www.flake8rules.com/rules/E201.html [2]: https://www.flake8rules.com/rules/E202.html Signed-off-by: Igor Munkin --- src/luajit-gdb.py | 14 +++++++------- src/luajit_lldb.py | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/luajit-gdb.py b/src/luajit-gdb.py index b84fdc93..198578b1 100644 --- a/src/luajit-gdb.py +++ b/src/luajit-gdb.py @@ -195,7 +195,7 @@ def L(L=None): # lookup a symbol for the main coroutine considering the host app # XXX Fragile: though the loop initialization looks like a crap but it # respects both Python 2 and Python 3. - for l in [ L ] + list(map(lambda l: lookup(l), ( + for l in [L] + list(map(lambda l: lookup(l), ( # LuaJIT main coro (see luajit/src/luajit.c) 'globalL', # Tarantool main coro (see tarantool/src/lua/init.h) @@ -504,20 +504,20 @@ def dump_stack(L, base=None, top=None): def dump_gc(g): gc = g['gc'] - stats = [ '{key}: {value}'.format(key = f, value = gc[f]) for f in ( + stats = ['{key}: {value}'.format(key = f, value = gc[f]) for f in ( 'total', 'threshold', 'debt', 'estimate', 'stepmul', 'pause' - ) ] + )] - stats += [ 'sweepstr: {sweepstr}/{strmask}'.format( + stats += ['sweepstr: {sweepstr}/{strmask}'.format( sweepstr = gc['sweepstr'], # String hash mask (size of hash table - 1). strmask = g['strmask'] + 1, - ) ] + )] - stats += [ '{key}: {number} objects'.format( + stats += ['{key}: {number} objects'.format( key = stat, number = handler(gc[stat]) - ) for stat, handler in gclen.items() ] + ) for stat, handler in gclen.items()] return '\n'.join(map(lambda s: '\t' + s, stats)) diff --git a/src/luajit_lldb.py b/src/luajit_lldb.py index 3f636546..2887723b 100644 --- a/src/luajit_lldb.py +++ b/src/luajit_lldb.py @@ -211,7 +211,7 @@ c_structs = { } for cls in c_structs.keys(): - globals()[cls] = type(cls, (Struct, ), {'metainfo': c_structs[cls]} ) + globals()[cls] = type(cls, (Struct, ), {'metainfo': c_structs[cls]}) for cls in Struct.__subclasses__(): ptr_name = cls.__name__ + 'Ptr' @@ -394,16 +394,16 @@ def dump_gc(g): 'total', 'threshold', 'debt', 'estimate', 'stepmul', 'pause' )] - stats += [ 'sweepstr: {sweepstr}/{strmask}'.format( + stats += ['sweepstr: {sweepstr}/{strmask}'.format( sweepstr = gc.sweepstr, # String hash mask (size of hash table - 1). strmask = g.strmask + 1, - ) ] + )] - stats += [ '{key}: {number} objects'.format( + stats += ['{key}: {number} objects'.format( key = stat, number = handler(getattr(gc, stat)) - ) for stat, handler in gclen.items() ] + ) for stat, handler in gclen.items()] return '\n'.join(map(lambda s: '\t' + s, stats)) def mref(typename, obj): @@ -424,7 +424,7 @@ def L(L=None): # lookup a symbol for the main coroutine considering the host app # XXX Fragile: though the loop initialization looks like a crap but it # respects both Python 2 and Python 3. - for l in [ L ] + list(map(lambda l: lookup_global(l), ( + for l in [L] + list(map(lambda l: lookup_global(l), ( # LuaJIT main coro (see luajit/src/luajit.c) 'globalL', # Tarantool main coro (see tarantool/src/lua/init.h) -- 2.30.2