Skip to content

Commit

Permalink
use relative import within the package
Browse files Browse the repository at this point in the history
-> make the package more portable
  • Loading branch information
mammo0 committed Jun 2, 2021
1 parent 49c44ce commit 34b8866
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions simple_singleton/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from simple_singleton.singleton import _SingletonMeta
from simple_singleton.singleton_args import _SingletonArgsMeta
from simple_singleton.thread_singleton import _ThreadSingletonMeta, \
_ThreadSingletonArgsMeta
from .singleton import _SingletonMeta
from .singleton_args import _SingletonArgsMeta
from .thread_singleton import _ThreadSingletonMeta, _ThreadSingletonArgsMeta


__all__ = ["Singleton", "ThreadSingleton", "SingletonArgs", "ThreadSingletonArgs"]
Expand Down
4 changes: 2 additions & 2 deletions simple_singleton/thread_singleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"""
from threading import Lock

from simple_singleton.singleton import _SingletonMeta
from simple_singleton.singleton_args import _SingletonArgsMeta
from .singleton import _SingletonMeta
from .singleton_args import _SingletonArgsMeta


class _ThreadSafeMixin(type):
Expand Down

0 comments on commit 34b8866

Please sign in to comment.