Skip to content

Commit d2bd702

Browse files
committed
deprecate python2 support
1 parent aa88a63 commit d2bd702

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

dns/py/params.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,7 @@ def is_relevant(self, attributes):
160160
def set(self, inputs, value):
161161
if value > 0:
162162
cf = inputs.configmap_yaml['data']['Corefile']
163-
# fix the cf type so that it works also for python3
164-
if(type(cf) == str):
165-
cfList = cf.split("\n")
166-
else:
167-
cfList = cf.decode().split("\n")
163+
cfList = cf.split("\n")
168164
cfList.insert(1,
169165
" cache {\n"
170166
" success " + repr(value) + "\n"

0 commit comments

Comments
 (0)