From b918610e4fc30a694eb78a6d8a856412d19a6087 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Fri, 3 Jul 2020 14:58:18 -0700 Subject: [PATCH] Remove code in _escapify() that can never run. --- dns/name.py | 2 -- 1 file changed, 2 deletions(-) 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) -- 2.47.3