[Tarantool-patches] [PATCH luajit 02/15] test: fix E128 errors by pycodestyle
Sergey Bronnikov
sergeyb at tarantool.org
Thu Aug 3 17:26:09 MSK 2023
LGTM
On 8/3/23 10:30, Igor Munkin wrote:
> 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 <imun at tarantool.org>
> ---
> 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 \
More information about the Tarantool-patches
mailing list