mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-05-18 11:36:26 -04:00
Remove Python 3.8 shim for missing str.removeprefix
This commit is contained in:
@@ -293,12 +293,7 @@ def _error_old_version(
|
||||
|
||||
|
||||
def _remove_leading_v(s: str) -> str:
|
||||
if sys.version_info >= (3, 9):
|
||||
return s.removeprefix('v')
|
||||
|
||||
if s.startswith('v'):
|
||||
return s[1:]
|
||||
return s
|
||||
return s.removeprefix('v')
|
||||
|
||||
|
||||
def check_external_program(
|
||||
|
||||
Reference in New Issue
Block a user