mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix nt import in shutil
This commit is contained in:
1 file changed
+3
-1
Vendored
+3
-1
@@ -1015,7 +1015,9 @@ if hasattr(os, 'statvfs'):
|
||||
|
||||
elif os.name == 'nt':
|
||||
|
||||
import nt
|
||||
# XXX RustPython TODO: figure out what to do with posix vs nt vs os
|
||||
# import nt
|
||||
import os as nt
|
||||
__all__.append('disk_usage')
|
||||
_ntuple_diskusage = collections.namedtuple('usage', 'total used free')
|
||||
|
||||
|
||||
Reference in new issue
Block a user