mirror of https://github.com/mahmoud/boltons.git
Switch to explicit relative imports (#303)
This commit is contained in:
parent
843d675730
commit
1372434369
|
@ -82,7 +82,7 @@ except Exception:
|
|||
pass
|
||||
|
||||
try:
|
||||
from boltons.typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
_MISSING = make_sentinel(var_name='_MISSING')
|
||||
_KWARG_MARK = make_sentinel(var_name='_KWARG_MARK')
|
||||
except ImportError:
|
||||
|
|
|
@ -47,7 +47,7 @@ except NameError:
|
|||
from reprlib import Repr
|
||||
|
||||
try:
|
||||
from typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
_UNSET = make_sentinel(var_name='_UNSET')
|
||||
except ImportError:
|
||||
_UNSET = object()
|
||||
|
|
|
@ -82,7 +82,7 @@ except ImportError:
|
|||
from itertools import zip_longest as izip_longest
|
||||
|
||||
try:
|
||||
from typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
_MISSING = make_sentinel(var_name='_MISSING')
|
||||
except ImportError:
|
||||
_MISSING = object()
|
||||
|
|
|
@ -64,7 +64,7 @@ except AttributeError:
|
|||
|
||||
|
||||
try:
|
||||
from boltons.typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
NO_DEFAULT = make_sentinel(var_name='NO_DEFAULT')
|
||||
except ImportError:
|
||||
NO_DEFAULT = object()
|
||||
|
|
|
@ -55,7 +55,7 @@ except ImportError:
|
|||
|
||||
|
||||
try:
|
||||
from typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
_UNSET = make_sentinel('_UNSET')
|
||||
_REMAP_EXIT = make_sentinel('_REMAP_EXIT')
|
||||
except ImportError:
|
||||
|
|
|
@ -47,7 +47,7 @@ from math import log as math_log
|
|||
from itertools import chain, islice
|
||||
|
||||
try:
|
||||
from typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
_MISSING = make_sentinel(var_name='_MISSING')
|
||||
except ImportError:
|
||||
_MISSING = object()
|
||||
|
|
|
@ -70,13 +70,13 @@ from bisect import insort
|
|||
import itertools
|
||||
|
||||
try:
|
||||
from typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
_REMOVED = make_sentinel(var_name='_REMOVED')
|
||||
except ImportError:
|
||||
_REMOVED = object()
|
||||
|
||||
try:
|
||||
from listutils import BList
|
||||
from .listutils import BList
|
||||
# see BarrelList docstring for notes
|
||||
except ImportError:
|
||||
BList = list
|
||||
|
|
|
@ -53,7 +53,7 @@ except ImportError:
|
|||
from collections import MutableSet
|
||||
|
||||
try:
|
||||
from typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
_MISSING = make_sentinel(var_name='_MISSING')
|
||||
except ImportError:
|
||||
_MISSING = object()
|
||||
|
|
|
@ -82,7 +82,7 @@ except Exception:
|
|||
|
||||
|
||||
try:
|
||||
from typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
_UNSET = make_sentinel(var_name='_UNSET')
|
||||
except ImportError:
|
||||
_UNSET = object()
|
||||
|
|
|
@ -72,7 +72,7 @@ except NameError:
|
|||
from html import escape as html_escape
|
||||
|
||||
try:
|
||||
from typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
_MISSING = make_sentinel(var_name='_MISSING')
|
||||
except ImportError:
|
||||
_MISSING = object()
|
||||
|
|
|
@ -995,7 +995,7 @@ except ImportError:
|
|||
from itertools import zip_longest as izip_longest
|
||||
|
||||
try:
|
||||
from typeutils import make_sentinel
|
||||
from .typeutils import make_sentinel
|
||||
_MISSING = make_sentinel(var_name='_MISSING')
|
||||
except ImportError:
|
||||
_MISSING = object()
|
||||
|
@ -1538,7 +1538,7 @@ class OrderedMultiDict(dict):
|
|||
|
||||
try:
|
||||
# try to import the built-in one anyways
|
||||
from boltons.dictutils import OrderedMultiDict
|
||||
from .dictutils import OrderedMultiDict
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue