File: SyntaxWarning.patch

package info (click to toggle)
python-adal 1.2.7-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,384 kB
  • sloc: xml: 12,790; python: 4,653; makefile: 14
file content (19 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/adal/authentication_parameters.py
+++ b/adal/authentication_parameters.py
@@ -89,13 +89,13 @@
 # header needs to be checked for validity before we can be certain that
 # we will succeed in pulling out the individual parts.
 bearer_challenge_structure_validation = re.compile(
-    """^\s*Bearer\s+([^,\s="]+?)="([^"]*?)"\s*(,\s*([^,\s="]+?)="([^"]*?)"\s*)*$""")
+    r"""^\s*Bearer\s+([^,\s="]+?)="([^"]*?)"\s*(,\s*([^,\s="]+?)="([^"]*?)"\s*)*$""")
 # This regex pulls out the key and value from the very first pair.
-first_key_value_pair_regex = re.compile("""^\s*Bearer\s+([^,\s="]+?)="([^"]*?)"\s*""")
+first_key_value_pair_regex = re.compile(r"""^\s*Bearer\s+([^,\s="]+?)="([^"]*?)"\s*""")
 
 # This regex is used to pull out all of the key value pairs after the first one.
 # All of these begin with a comma.
-all_other_key_value_pair_regex = re.compile("""(?:,\s*([^,\s="]+?)="([^"]*?)"\s*)""")
+all_other_key_value_pair_regex = re.compile(r"""(?:,\s*([^,\s="]+?)="([^"]*?)"\s*)""")
 
 
 def parse_challenge(challenge):