Skip to content

Commit

Permalink
refactor: move binary.py to private _utils package
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirVondukr committed Nov 13, 2024
1 parent 5662cb6 commit b9293d0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
File renamed without changes.
4 changes: 0 additions & 4 deletions libpass/errors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
class Panic(Exception):
pass


class MalformedHashError(Exception):
pass
2 changes: 1 addition & 1 deletion libpass/hashers/sha_crypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import secrets
from typing import TYPE_CHECKING, Callable

from libpass._utils.binary import B64_CHARS, h64_engine
from libpass._utils.bytes import StrOrBytes, as_bytes, as_str
from libpass._utils.str import repeat_string
from libpass._utils.validation import validate_rounds
from libpass.binary import B64_CHARS, h64_engine
from libpass.hashers.abc import PasswordHasher
from libpass.inspect.sha_crypt import (
SHA256CryptInfo,
Expand Down
2 changes: 1 addition & 1 deletion tests/libpass/hashers/test_sha_crypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from libpass.binary import B64_CHARS
from libpass._utils.binary import B64_CHARS
from libpass.hashers.sha_crypt import SHA256Hasher, SHA512Hasher


Expand Down

0 comments on commit b9293d0

Please sign in to comment.