mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-25 00:48:19 +00:00
all: remove extraneous whitespace
This commit is contained in:
parent
daf0d77923
commit
f7053d96fe
@ -36,7 +36,6 @@ class TestEosActions(unittest.TestCase):
|
||||
self.assertEqual(check_action(EosTxActionAck(unknown=[]), 'unknown', 'not_eosio'), True)
|
||||
self.assertEqual(check_action(EosTxActionAck(unknown=[]), 'buyram', 'buygoods'), True)
|
||||
|
||||
|
||||
# returns False
|
||||
self.assertEqual(check_action(EosTxActionAck(buy_ram=EosActionBuyRam()), 'buyram', 'not_eosio'), False)
|
||||
self.assertEqual(check_action(EosTxActionAck(), 'buyram', 'eosio'), False)
|
||||
|
@ -35,9 +35,9 @@ while (<>) {
|
||||
die if $c > 6;
|
||||
push @words, @nw;
|
||||
if ($n ne $l) {
|
||||
$len = @arr2;
|
||||
die if $len - $arr1[-1] > 9;
|
||||
push @arr1, $len;
|
||||
$len = @arr2;
|
||||
die if $len - $arr1[-1] > 9;
|
||||
push @arr1, $len;
|
||||
}
|
||||
push @arr2, $x;
|
||||
$x += $c;
|
||||
@ -55,25 +55,25 @@ sub computerange($$$) {
|
||||
$next = $i2 == @words ? "_" : $words[$i2];
|
||||
my $j;
|
||||
for ($j = 0; $j < 5; $j++) {
|
||||
last if substr($first, 0, $j+1) ne substr($last, 0, $j+1);
|
||||
last if substr($prev, 0, $j) ne substr($first, 0, $j)
|
||||
&& substr($next, 0, $j) ne substr($last, 0, $j);
|
||||
last if substr($first, 0, $j+1) ne substr($last, 0, $j+1);
|
||||
last if substr($prev, 0, $j) ne substr($first, 0, $j)
|
||||
&& substr($next, 0, $j) ne substr($last, 0, $j);
|
||||
}
|
||||
$prefix = substr($first, 0, $j);
|
||||
$range = "";
|
||||
$rng = 0;
|
||||
if (substr($prev, 0, $j) eq substr($first, 0, $j)
|
||||
|| substr($last, 0, $j) eq substr($next, 0, $j)) {
|
||||
$range = "[".substr($first, $j, 1) . "-". substr($last, $j, 1)."]";
|
||||
$rng++;
|
||||
if ($j <= 1) {
|
||||
$range = substr($first,0, $j+1)."-".substr($last,0,$j+1);
|
||||
$prefix= "";
|
||||
}
|
||||
|| substr($last, 0, $j) eq substr($next, 0, $j)) {
|
||||
$range = "[".substr($first, $j, 1) . "-". substr($last, $j, 1)."]";
|
||||
$rng++;
|
||||
if ($j <= 1) {
|
||||
$range = substr($first,0, $j+1)."-".substr($last,0,$j+1);
|
||||
$prefix= "";
|
||||
}
|
||||
}
|
||||
if (substr($prev, 0, $j+1) eq substr($first, 0, $j+1)
|
||||
|| substr($last, 0, $j+1) eq substr($next, 0, $j+1)) {
|
||||
$j = 0; $rng = 2;
|
||||
|| substr($last, 0, $j+1) eq substr($next, 0, $j+1)) {
|
||||
$j = 0; $rng = 2;
|
||||
}
|
||||
#printf STDERR " # %1d: %9s - %9s = \U$prefix$range\E\n", $entries, $first, $last;
|
||||
return $j + $rng;
|
||||
|
Loading…
Reference in New Issue
Block a user