Skip to content

Commit

Permalink
Python 3.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Mar 12, 2020
1 parent 1df3408 commit 55ac06a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rules/TaskVariableHasSpace.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ class TaskVariableHasSpace(AnsibleLintRule):
description = ''
tags = ['task']

compiled = re.compile(ur'{{(\w*)}}')
compiled = re.compile(r'{{(\w*)}}')

def match(self, file, text):
m = self.compiled.search(text)
if m:
return True
return False


0 comments on commit 55ac06a

Please sign in to comment.