From 9a45bf676ec5bab6c59673a63a1f6d90a11d3b98 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sun, 28 Jul 2019 16:01:47 +0200 Subject: [PATCH] [mod] Move helpers.py to tools.py to avoid confusion with the introduction of helpers --- duniterpy/documents/crc_pubkey.py | 2 +- duniterpy/key/base58.py | 2 +- duniterpy/key/encryption_key.py | 2 +- duniterpy/key/signing_key.py | 2 +- duniterpy/{helpers.py => tools.py} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename duniterpy/{helpers.py => tools.py} (100%) diff --git a/duniterpy/documents/crc_pubkey.py b/duniterpy/documents/crc_pubkey.py index 75167cb3..e9d55cd7 100644 --- a/duniterpy/documents/crc_pubkey.py +++ b/duniterpy/documents/crc_pubkey.py @@ -4,7 +4,7 @@ import base58 import re import hashlib from ..constants import PUBKEY_REGEX -from ..helpers import ensure_str +from ..tools import ensure_str # required to type hint cls in classmethod CRCPubkeyType = TypeVar("CRCPubkeyType", bound="CRCPubkey") diff --git a/duniterpy/key/base58.py b/duniterpy/key/base58.py index 3c258709..cfb8021c 100644 --- a/duniterpy/key/base58.py +++ b/duniterpy/key/base58.py @@ -2,7 +2,7 @@ from typing import Union import base58 -from ..helpers import ensure_str, ensure_bytes +from ..tools import ensure_str, ensure_bytes class Base58Encoder: diff --git a/duniterpy/key/encryption_key.py b/duniterpy/key/encryption_key.py index 376c16ea..509b63f4 100644 --- a/duniterpy/key/encryption_key.py +++ b/duniterpy/key/encryption_key.py @@ -10,7 +10,7 @@ from pylibscrypt import scrypt from .scrypt_params import ScryptParams from .base58 import Base58Encoder -from ..helpers import ensure_bytes +from ..tools import ensure_bytes class SecretKey(libnacl.public.SecretKey): diff --git a/duniterpy/key/signing_key.py b/duniterpy/key/signing_key.py index 5abc00df..4f1e444d 100644 --- a/duniterpy/key/signing_key.py +++ b/duniterpy/key/signing_key.py @@ -13,7 +13,7 @@ from pylibscrypt import scrypt from .scrypt_params import ScryptParams from .base58 import Base58Encoder -from ..helpers import ( +from ..tools import ( ensure_bytes, xor_bytes, convert_seedhex_to_seed, diff --git a/duniterpy/helpers.py b/duniterpy/tools.py similarity index 100% rename from duniterpy/helpers.py rename to duniterpy/tools.py -- GitLab