From 691e238c4a05c4bc93959fa339df341f24113919 Mon Sep 17 00:00:00 2001 From: iceland <75991805+iceland2k14@users.noreply.github.com> Date: Sun, 22 May 2022 16:58:05 +0530 Subject: [PATCH] in place changes --- secp256k1.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/secp256k1.py b/secp256k1.py index e8f73f1..15f62b1 100644 --- a/secp256k1.py +++ b/secp256k1.py @@ -694,11 +694,9 @@ def prepare_bin_file_work(in_file, out_file, lower = False): with open(out_file, 'wb') as f: if use0x: - tmp_list = [line[2:] for line in inp_list] - else: - tmp_list = inp_list - tmp_list.sort() - for line in tmp_list: + inp_list = [line[2:] for line in inp_list] + inp_list.sort() + for line in inp_list: f.write(bytes.fromhex(line)) #============================================================================== def prepare_bin_file(in_file, out_file, overwrite = False, lower = False):