mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'Python_3.9_syntax' of https://github.com/madpilot78/calibre
This commit is contained in:
commit
0805fa23f2
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user