]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Fix invalid escape warning 266/head
authorNoa Resare <noa@resare.com>
Mon, 17 Jul 2017 11:34:23 +0000 (12:34 +0100)
committerGitHub <noreply@github.com>
Mon, 17 Jul 2017 11:34:23 +0000 (12:34 +0100)
commit7e01bb9fc2f4b1bebe010fb2359c07f6eca18824
tree4c6265450fa0de13895b0078445ee005db2b0c3d
parent6b11f2677fe6d4da653a85512ab73fa31c27214f
Fix invalid escape warning

a literal string '\#' in python 3.6 causes a DeprecationWarning "invalid escape sequence" as there is no defined backslash escape that looks like that. This change changes the string to a raw string, which makes the intent clear. The text format for unknown RR types is defined in RFC3597 Section 5, and should indeed be the two ascii characters backslash (0x5c) followed by pound sign (0x23).
dns/rdata.py