monkeysphere: Use raw string for re match

Update changelog.
This commit is contained in:
James Valleroy committed 2016-09-02 14:40:28 -04:00
1 parent 3454abdc43
commit ae0bd62b1e
2 files changed
+9 -2

No files matched your search

+1 -1
View File
@@ -145,7 +145,7 @@ def get_monkeysphere_keys(key_id=None):
uid = uid[uid.index(']') + 1:].strip()
keys[-1].setdefault('uids', []).append(uid)
matches = re.match('([a-zA-Z]*)://(.*)(:\d*)?', uid)
matches = re.match(r'([a-zA-Z]*)://(.*)(:\d*)?', uid)
keys[-1]['service'] = matches.group(1)
keys[-1]['imported_domains'].append(matches.group(2))
elif line.startswith('OpenPGP fingerprint:'):