mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Adapt union syntax to work on python 3.9
This commit is contained in:
parent
ef05b19024
commit
e227e0f123
@ -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