summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-07-03 14:58:18 -0700
committerBob Halley <halley@dnspython.org>2020-07-03 14:58:18 -0700
commitb918610e4fc30a694eb78a6d8a856412d19a6087 (patch)
tree1cf6816a6de145f61971f40b04ac2051c09e85ff
parent7d2784a42e46bfa27c00024745fe742d62f29b97 (diff)
downloaddnspython-b918610e4fc30a694eb78a6d8a856412d19a6087.tar.gz
Remove code in _escapify() that can never run.
-rw-r--r--dns/name.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/dns/name.py b/dns/name.py
index 477d0b7..529ae7f 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)