Switch to explicit relative imports (#303)

This commit is contained in:
skravik 2022-12-10 04:21:28 -06:00 committed by GitHub
parent 843d675730
commit 1372434369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 13 additions and 13 deletions

View File

@ -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:

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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:

View File

@ -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()

View File

@ -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

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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