Skip to content

Commit

Permalink
Drop the win32 specific walkdirs implementation
Browse files Browse the repository at this point in the history
by jelmer review by jelmer
  • Loading branch information
jelmer authored and The Breezy Bot committed Apr 3, 2024
2 parents e654051 + c0cc3a6 commit 8044f7c
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 533 deletions.
1 change: 0 additions & 1 deletion .bzrignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ breezy/_readdir_pyx.c
breezy/bzr/_simple_set_pyx.c
breezy/bzr/_simple_set_pyx.h
breezy/bzr/_simple_set_pyx_api.h
breezy/_walkdirs_win32.c
# built extension modules
breezy/_*.dll
breezy/_*.so
Expand Down
303 changes: 0 additions & 303 deletions breezy/_walkdirs_win32.pyx

This file was deleted.

14 changes: 1 addition & 13 deletions breezy/osutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,6 @@ def wrap_stat(st):
normpath = _win32_normpath
getcwd = _win32_getcwd
rename = _rename_wrap_exception(_win32_rename)
try:
from . import _walkdirs_win32
except ImportError:
pass
else:
lstat = _walkdirs_win32.lstat
fstat = _walkdirs_win32.fstat
wrap_stat = _walkdirs_win32.wrap_stat

MIN_ABS_PATHLENGTH = 3

Expand Down Expand Up @@ -1728,11 +1720,7 @@ def _walkdirs_utf8(top, prefix="", fs_enc=None):
if fs_enc is None:
fs_enc = sys.getfilesystemencoding()
if sys.platform == "win32":
try:
from ._walkdirs_win32 import Win32ReadDir
_selected_dir_reader = Win32ReadDir()
except ImportError:
pass
pass
elif fs_enc in ('utf-8', 'ascii'):
try:
from ._readdir_pyx import UTF8DirReader
Expand Down
1 change: 0 additions & 1 deletion breezy/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3972,7 +3972,6 @@ def _test_suite_testmod_names():
'breezy.tests.per_workingtree',
'breezy.tests.test__annotator',
'breezy.tests.test__known_graph',
'breezy.tests.test__walkdirs_win32',
'breezy.tests.test_ancestry',
'breezy.tests.test_annotate',
'breezy.tests.test_atomicfile',
Expand Down
Loading

0 comments on commit 8044f7c

Please sign in to comment.