comparison cutils/util/walk.py @ 164:a813094ae4f5

Move PY2 from cutils.util.constants into cutils.util
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 09 Jan 2025 13:48:57 +0100
parents 29dd5528174c
children 506d895a8500
comparison
equal deleted inserted replaced
163:fa7dd54e9715 164:a813094ae4f5
17 try: 17 try:
18 from scandir import scandir 18 from scandir import scandir
19 except ImportError: 19 except ImportError:
20 scandir = None 20 scandir = None
21 21
22 from . import PY2
22 from .cm import nullcontext 23 from .cm import nullcontext
23 from .constants import PY2
24 24
25 25
26 class WalkDirEntry(object): 26 class WalkDirEntry(object):
27 27
28 """A :class:`os.DirEntry` alike to be used in :func:`walk` and for 28 """A :class:`os.DirEntry` alike to be used in :func:`walk` and for