Merge "Drop workaround for Python < 3.10"

This commit is contained in:
Zuul
2026-01-07 17:39:04 +00:00
committed by Gerrit Code Review
+1 -5
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)