1
0

util: rm hfu, cleaner bh2u

This commit is contained in:
SomberNight
2019-02-01 18:07:28 +01:00
parent 7f3de8241c
commit 3ad6f738bd
2 changed files with 5 additions and 5 deletions

View File

@@ -462,7 +462,6 @@ def to_bytes(something, encoding='utf8') -> bytes:
bfh = bytes.fromhex
hfu = binascii.hexlify
def bh2u(x: bytes) -> str:
@@ -473,7 +472,7 @@ def bh2u(x: bytes) -> str:
>>> bh2u(x)
'01020A'
"""
return hfu(x).decode('ascii')
return x.hex()
def user_dir():