Merge "Remove all usage of six library"

This commit is contained in:
Zuul 2020-09-02 09:10:35 +00:00 committed by Gerrit Code Review
commit ef54f10b79
1 changed files with 2 additions and 4 deletions

View File

@ -173,10 +173,9 @@ function _allocation_range {
import sys
from netaddr import IPNetwork
import six
n = IPNetwork(six.text_type(sys.argv[1]))
n = IPNetwork(str(sys.argv[1]))
gateway_position = sys.argv[2]
if gateway_position == 'beginning':
@ -1064,10 +1063,9 @@ function split_subnet {
import sys
from netaddr import IPNetwork
import six
n = IPNetwork(six.text_type(sys.argv[1]))
n = IPNetwork(str(sys.argv[1]))
first, last = n.subnet(n.prefixlen+1)
print("%s\\t%s" % (first, last))