1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

python3: remove str.encode(ascii, ignore) call from python3 tree

because of this line the string was converted to bytes and would
cause side effects.

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin
2020-01-28 09:15:39 +01:00
parent 0c6b76af51
commit 55dab2f772

View File

@ -1684,7 +1684,6 @@ class ifupdownMain:
if not ec:
continue
else:
ec = ec.encode('ascii','ignore')
for ee in ec.split():
if ee in new_excludepats:
continue