Skip to content

Commit

Permalink
Use absolute imports
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Aug 10, 2024
1 parent 02e9237 commit fed93fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Lib/pathlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
operating systems.
"""

from ._abc import *
from ._local import *
from pathlib._abc import *
from pathlib._local import *

__all__ = (_abc.__all__ +
_local.__all__)
2 changes: 1 addition & 1 deletion Lib/pathlib/_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import posixpath
from glob import _GlobberBase, _no_recurse_symlinks
from stat import S_ISDIR, S_ISLNK, S_ISREG, S_ISSOCK, S_ISBLK, S_ISCHR, S_ISFIFO
from ._os import copyfileobj
from pathlib._os import copyfileobj


__all__ = ["UnsupportedOperation"]
Expand Down
6 changes: 3 additions & 3 deletions Lib/pathlib/_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
except ImportError:
grp = None

from ._os import (copyfile, file_metadata_keys, read_file_metadata,
write_file_metadata)
from ._abc import UnsupportedOperation, PurePathBase, PathBase
from pathlib._os import (copyfile, file_metadata_keys, read_file_metadata,
write_file_metadata)
from pathlib._abc import UnsupportedOperation, PurePathBase, PathBase


__all__ = [
Expand Down

0 comments on commit fed93fc

Please sign in to comment.