Drop workaround for Python < 3.10

... because 3.10 is the current minimum version.

Change-Id: I346219086b27410fc95613f12ed9790bd281c347
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2026-01-07 22:57:31 +09:00
parent e5a56f2827
commit 678d8edb24

View File

@@ -34,11 +34,7 @@ class ManilaClientTestCommonReadOnly(base.BaseTestCase):
commands = []
cmds_start = lines.index('Positional arguments:')
try:
# TODO(gouthamr): Drop when py3.10 becomes min supported version
cmds_end = lines.index('Optional arguments:')
except ValueError:
cmds_end = lines.index('Options:')
cmds_end = lines.index('Options:')
command_pattern = re.compile(r'^ {4}([a-z0-9\-\_]+)')
for line in lines[cmds_start:cmds_end]:
match = command_pattern.match(line)