Skip to content

Commit

Permalink
Merge pull request #2049 from tirkarthi/fix-syntax-warning
Browse files Browse the repository at this point in the history
Fix syntax warnings due to comparison of literals using is.
  • Loading branch information
jneves authored Mar 9, 2020
2 parents dfca810 + 44eb022 commit 78a9045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/authmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class AuthPolicy:
"""The principal used for the policy, this should be a unique identifier for the end user."""
version = "2012-10-17"
"""The policy version used for the evaluation. This should always be '2012-10-17'"""
pathRegex = "^[/.a-zA-Z0-9-\*]+$"
pathRegex = r"^[/.a-zA-Z0-9-\*]+$"
"""The regular expression used to validate resource paths for the policy"""

"""these are the internal lists of allowed and denied methods. These are lists
Expand Down

0 comments on commit 78a9045

Please sign in to comment.