From: Bob Halley Date: Fri, 3 Jul 2020 21:58:18 +0000 (-0700) Subject: Remove code in _escapify() that can never run. X-Git-Tag: v2.0.0rc2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b918610e4fc30a694eb78a6d8a856412d19a6087;p=thirdparty%2Fdnspython.git Remove code in _escapify() that can never run. --- diff --git a/dns/name.py b/dns/name.py index 477d0b74..529ae7f9 100644 --- a/dns/name.py +++ b/dns/name.py @@ -241,8 +241,6 @@ def _escapify(label): # Ordinary DNS label mode. Escape special characters and values # < 0x20 or > 0x7f. text = '' - if isinstance(label, str): - label = label.encode() for c in label: if c in _escaped: text += '\\' + chr(c)