15
0
Files
python-dns-lexicon/fix_regexps.patch
Matej Cepl 81550f614a - Update to version 3.0.7
- Fix tests (the only excluded tests are test_hetzner)
- Add fix_regexps.patch to fix gh#AnalogJ/lexicon#332

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dns-lexicon?expand=0&rev=10
2018-12-19 13:35:35 +00:00

14 lines
536 B
Diff

--- a/lexicon/providers/gehirn.py
+++ b/lexicon/providers/gehirn.py
@@ -38,8 +38,8 @@ FORMAT_RE = {
"CNAME": re.compile("(?P<cname>.+)"),
"TXT": re.compile("(?P<data>.+)"),
"NS": re.compile("(?P<nsdname>.+)"),
- "MX": re.compile("(?P<prio>\d+)\s+(?P<exchange>.+)"),
- "SRV": re.compile("(?P<prio>\d+)\s+(?P<weight>\d+)\s+(?P<port>\d+)\s+(?P<target>.+)"),
+ "MX": re.compile(r"(?P<prio>\d+)\s+(?P<exchange>.+)"),
+ "SRV": re.compile(r"(?P<prio>\d+)\s+(?P<weight>\d+)\s+(?P<port>\d+)\s+(?P<target>.+)"),
}