Changeset 195d1d8


Ignore:
Timestamp:
May 7, 2024, 4:43:41 PM (6 weeks ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
083e637
Parents:
0f4c513
Message:

update search strings to raw strings for python 3.12

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Cost.h

    r0f4c513 r195d1d8  
    1010// Created On       : Sun May 17 09:39:50 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jun 21 11:39:13 2019
    13 // Update Count     : 63
     12// Last Modified On : Fri May  3 17:15:41 2024
     13// Update Count     : 64
    1414//
    1515
     
    1919#include <cassert>
    2020#include <climits>
     21#include <cstdint>
    2122
    2223namespace ResolvExpr {
  • tests/pybin/tools.py

    r0f4c513 r195d1d8  
    120120                return (False, "'file EXPECT' failed with code {} '{}'".format(code, err))
    121121
    122         match = re.search(".*: (.*)", out)
     122        match = re.search(r".*: (.*)", out)
    123123
    124124        if not match:
     
    306306                sys.exit(1)
    307307
    308         re_jobs = re.search("--jobserver-(auth|fds)", out)
     308        re_jobs = re.search(r"--jobserver-(auth|fds)", out)
    309309        if not re_jobs:
    310310                print("ERROR: cannot find Makefile jobserver version", file=sys.stderr)
  • tests/test.py

    r0f4c513 r195d1d8  
    2323
    2424        def match_test(path):
    25                 match = re.search("^%s\/([\w\/\-_]*).expect\/([\w\-_\+]+)(\.[\w\-_]+)?\.txt$" % settings.SRCDIR, path)
     25                match = re.search(r'^%s\/([\w\/\-_]*).expect\/([\w\-_\+]+)(\.[\w\-_]+)?\.txt$' % settings.SRCDIR, path)
    2626                if match :
    2727                        test = Test()
     
    359359                                sys.exit(1)
    360360
    361                         print(' '.join(re.findall('([^\s]+\.cfa)', out)), end=' ')
     361                        print(' '.join(re.findall(r'([^\s]+\.cfa)', out)), end=' ')
    362362
    363363                print('')
Note: See TracChangeset for help on using the changeset viewer.