tests/run-tests.py
branchstable
changeset 802 630d72ae4f76
parent 801 413c6fe6d1e3
child 822 842e2c76e64b
equal deleted inserted replaced
801:413c6fe6d1e3 802:630d72ae4f76
   516         res = ''
   516         res = ''
   517         while i < n:
   517         while i < n:
   518             c = el[i]
   518             c = el[i]
   519             i += 1
   519             i += 1
   520             if c == '\\' and el[i] in '*?\\':
   520             if c == '\\' and el[i] in '*?\\':
   521                 res += el[i-1:i+1]
   521                 res += el[i - 1:i + 1]
   522                 i += 1
   522                 i += 1
   523             elif c == '*':
   523             elif c == '*':
   524                 res += '.*'
   524                 res += '.*'
   525             elif c == '?':
   525             elif c == '?':
   526                 res += '.'
   526                 res += '.'