Skip to content

Conversation

rjmansfield
Copy link
Contributor

This avoid deprecated/syntax warnings about invalid escape sequences. The deprecation warnings were off by default but made into SyntaxWarnings in python 3.12+.

For example,

swift/test/lit.cfg:2899: SyntaxWarning: invalid escape sequence '('
config.substitutions.append(('%target-swift-emit-module-interfaces(([^)]+),\w*([^)]+))',
swift/test/lit.cfg:2901: SyntaxWarning: invalid escape sequence '('
config.substitutions.append(('%target-swift-emit-module-interface(([^)]+))',

@rjmansfield
Copy link
Contributor Author

@swift-ci please test

@rjmansfield
Copy link
Contributor Author

@swift-ci Please test macOS

This avoid deprecated/syntax warnings about invalid escape sequences.
The deprecation warnings were off by default but made into
SyntaxWarnings in python 3.12+

For example,

swift/test/lit.cfg:2899: SyntaxWarning: invalid escape sequence '\('
  config.substitutions.append(('%target-swift-emit-module-interfaces\(([^)]+),\w*([^)]+)\)',
swift/test/lit.cfg:2901: SyntaxWarning: invalid escape sequence '\('
  config.substitutions.append(('%target-swift-emit-module-interface\(([^)]+)\)',
@rjmansfield
Copy link
Contributor Author

@swift-ci please smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant