Adapt union syntax to work on python 3.9

This commit is contained in:
Guido Falsi 2023-04-21 15:44:22 +02:00
parent ef05b19024
commit e227e0f123

View File

@ -127,7 +127,7 @@ class WindowsFileCopier:
winutil.delete_file(make_long_path_useable(src_path)) winutil.delete_file(make_long_path_useable(src_path))
def get_copier() -> Union[UnixFileCopier | WindowsFileCopier]: def get_copier() -> Union[UnixFileCopier, WindowsFileCopier]:
return WindowsFileCopier() if iswindows else UnixFileCopier() return WindowsFileCopier() if iswindows else UnixFileCopier()