1
0
şunun yansıması https://github.com/arsenetar/send2trash.git eşitlendi 2026-03-26 07:51:37 +00:00

Only import Windows-specific modules when on Windows

Bu işleme şunda yer alıyor:
Julian Gilbey
2021-01-29 05:42:11 +00:00
ebeveyn 2eb3242cd9
işleme 741c7ad51f

Dosyayı Görüntüle

@@ -9,8 +9,9 @@ from tempfile import gettempdir
from send2trash import send2trash as s2t
# import the two versions as well as the "automatic" version
from send2trash.plat_win_modern import send2trash as s2t_modern
from send2trash.plat_win_legacy import send2trash as s2t_legacy
if sys.platform == "win32":
from send2trash.plat_win_modern import send2trash as s2t_modern
from send2trash.plat_win_legacy import send2trash as s2t_legacy
@unittest.skipIf(sys.platform != "win32", "Windows only")