Merge branch 'Python_3.9_syntax' of https://github.com/madpilot78/calibre

This commit is contained in:
Kovid Goyal 2023-04-21 20:00:12 +05:30
commit 0805fa23f2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -127,7 +127,7 @@ class WindowsFileCopier:
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()