Skip to content

Commit

Permalink
Fix some "invalid escape sequences" errors in bin/optimize.py
Browse files Browse the repository at this point in the history
  • Loading branch information
spantaleev committed Apr 29, 2024
1 parent c631449 commit b415148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def write_to_file(contents, path):

# Matches the beginning of role-specific blocks.
# Example: `# role-specific:playbook_help`
regex_role_specific_block_start = regex.compile('^\s*#\s*role-specific\:\s*([^\s]+)$')
regex_role_specific_block_start = regex.compile('^\\s*#\\s*role-specific:\\s*([^\\s]+)$')

# Matches the end of role-specific blocks.
# Example: `# /role-specific:playbook_help`
regex_role_specific_block_end = regex.compile('^\s*#\s*/role-specific\:\s*([^\s]+)$')
regex_role_specific_block_end = regex.compile('^\\s*#\\s*/role-specific:\\s*([^\\s]+)$')

def process_file_contents(file_name, enabled_role_names, known_role_names):
contents = read_file(file_name)
Expand Down

0 comments on commit b415148

Please sign in to comment.