File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22import os
33import subprocess
4- import sys
54
65# Structs with no definition in the public header files
76OPAQUE_STRUCTS = [u'words' , u'wally_descriptor' ]
@@ -338,9 +337,9 @@ def gen_wally_hpp(funcs, all_funcs):
338337 prev = func .args [- 3 ]
339338 impl .append (f' if (ret == WALLY_OK && n != static_cast<size_t>({ prev .name } .size())) ret = WALLY_EINVAL;' )
340339 if is_verify_function :
341- impl .append (f ' return ret == WALLY_OK;' )
340+ impl .append (' return ret == WALLY_OK;' )
342341 else :
343- impl .append (f ' return detail::check_ret(__FUNCTION__, ret);' )
342+ impl .append (' return detail::check_ret(__FUNCTION__, ret);' )
344343 impl .extend ([u'}' , u'' ])
345344 (cpp_elements if func .is_elements else cpp )[func .name ] = impl
346345
@@ -490,8 +489,10 @@ def map_args(func):
490489
491490 js_args .append (js_arg_type )
492491
493- if ts_arg_type : ts_args .append (f'{ arg .name } : { ts_arg_type } ' )
494- if ts_return_type : ts_returns .append (f'{ arg .name } : { ts_return_type } ' )
492+ if ts_arg_type :
493+ ts_args .append (f'{ arg .name } : { ts_arg_type } ' )
494+ if ts_return_type :
495+ ts_returns .append (f'{ arg .name } : { ts_return_type } ' )
495496
496497 continue
497498
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def as_hex(s):
1717 assert len (words ) >= 2
1818 assert len (words ) in bits
1919
20- lengths = [ 0 ];
20+ lengths = [ 0 ]
2121 for w in words :
2222 lengths .append (lengths [- 1 ] + len (w .encode ('utf-8' )) + 1 )
2323 idxs = ['{0}+{1}' .format (string_name , n ) for n in lengths ]
You can’t perform that action at this time.
0 commit comments