Skip to content

Commit f660b52

Browse files
author
Theofilos Manitaras
committed
Address PR comments (version 3)
1 parent 5711d8c commit f660b52

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

reframe/utility/sanity.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,9 +538,8 @@ def _callable_name(fn):
538538

539539
def _extractiter_singletag(patt, filename, tag, conv, encoding):
540540
if isinstance(conv, collections.Iterable):
541-
raise SanityError(
542-
f'multiple conversion functions given for single group: {tag}'
543-
)
541+
raise SanityError('multiple conversion functions given for the single '
542+
f'capturing group: {tag!r}')
544543

545544
for m in finditer(patt, filename, encoding):
546545
try:
@@ -621,7 +620,7 @@ def extractall(patt, filename, tag=0, conv=None, encoding='utf-8'):
621620
returns the whole line that was matched.
622621
:arg conv: A callable or iterable of callables taking a single argument
623622
and returning a new value.
624-
If not an iterable it will be used to convert the extracted values for
623+
If not an iterable, it will be used to convert the extracted values for
625624
all the capturing groups specified in ``tag``.
626625
Otherwise, each conversion function will be used to convert the value
627626
extracted from the corresponding capturing group in ``tag``.

0 commit comments

Comments
 (0)