Skip to content

Commit

Permalink
Code structure minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Emojigit committed Dec 26, 2023
1 parent 8cb5dfe commit 3585caa
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions bchosttrust/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
# The legal text of GPLv3 and LGPLv3 can be found at
# bchosttrust/gpl-3.0.txt and bchosttrust/lgpl-3.0.txt respectively.

import lazy_loader as lazy

from .internal import BCHTBlock, BCHTEntry

__version__ = "0.0.3"

__all__ = (
Expand All @@ -33,8 +37,4 @@
"exceptions"
)

import lazy_loader as lazy

from .internal import BCHTBlock, BCHTEntry

__getattr__, __dir__, _ = lazy.attach(__name__, __all__)
1 change: 1 addition & 0 deletions bchosttrust/analysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from ..internal import BCHTBlock
from ..storage import BCHTStorageBase
from ..storage.import_block import parse_curr_hashes

__all__ = ("search", "tree", "horizontal")

__getattr__, __dir__, _ = lazy.attach(__name__, __all__)
Expand Down
4 changes: 2 additions & 2 deletions bchosttrust/consensus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
# The legal text of GPLv3 and LGPLv3 can be found at
# bchosttrust/gpl-3.0.txt and bchosttrust/lgpl-3.0.txt respectively.

__all__ = ("powc", "limitations")

import lazy_loader as lazy

from bchosttrust.internal.block import BCHTBlock
from .powc import validate_block_hash
from .limitations import validate_block_limitations

__all__ = ("powc", "limitations")

__getattr__, __dir__, _ = lazy.attach(__name__, __all__)


Expand Down
4 changes: 2 additions & 2 deletions bchosttrust/internal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
# The legal text of GPLv3 and LGPLv3 can be found at
# bchosttrust/gpl-3.0.txt and bchosttrust/lgpl-3.0.txt respectively.

__all__ = ("block", )

import lazy_loader as lazy

from .block import BCHTBlock, BCHTEntry

__all__ = ("block", )

__getattr__, __dir__, _ = lazy.attach(__name__, __all__)
4 changes: 2 additions & 2 deletions bchosttrust/storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
# The legal text of GPLv3 and LGPLv3 can be found at
# bchosttrust/gpl-3.0.txt and bchosttrust/lgpl-3.0.txt respectively.

__all__ = ("leveldb", "meta", "dummy")

import os
import lazy_loader as lazy

Expand All @@ -29,6 +27,8 @@
from .dummy import BCHTDummyStorage
from ..utils import get_data_path

__all__ = ("leveldb", "meta", "dummy")

__getattr__, __dir__, _ = lazy.attach(__name__, __all__)


Expand Down

0 comments on commit 3585caa

Please sign in to comment.