Skip to content

Commit 19be403

Browse files
author
David Sommerseth
committed
Don't append newline when etherinfo_ipv6addr objects are used as strings
Signed-off-by: David Sommerseth <davids@redhat.com>
1 parent 64b6c08 commit 19be403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-ethtool/etherinfo_ipv6_obj.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ PyObject *_ethtool_etherinfo_ipv6_str(etherinfo_ipv6addr_py *self)
152152
}
153153

154154
rtnl_scope2str(self->addrdata->scope, scope, 64);
155-
return PyString_FromFormat("[%s] %s/%i\n",
155+
return PyString_FromFormat("[%s] %s/%i",
156156
scope,
157157
self->addrdata->address,
158158
self->addrdata->netmask);

0 commit comments

Comments
 (0)