summaryrefslogtreecommitdiffstats
path: root/python-ethtool
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2010-08-03 10:09:36 +0200
committerDavid Sommerseth <davids@redhat.com>2010-08-03 10:09:36 +0200
commit19be403f729d3064259ca17e57ef24a1cc2ff81b (patch)
treefdc4de294656a3589e9ecccc388304e9c2a3ec21 /python-ethtool
parent64b6c084a57c3ee8fcaae47b4f0a03c443d55558 (diff)
downloadpython-ethtool-19be403f729d3064259ca17e57ef24a1cc2ff81b.tar.gz
python-ethtool-19be403f729d3064259ca17e57ef24a1cc2ff81b.tar.xz
python-ethtool-19be403f729d3064259ca17e57ef24a1cc2ff81b.zip
Don't append newline when etherinfo_ipv6addr objects are used as strings
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'python-ethtool')
-rw-r--r--python-ethtool/etherinfo_ipv6_obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python-ethtool/etherinfo_ipv6_obj.c b/python-ethtool/etherinfo_ipv6_obj.c
index d6acc47..fb751d4 100644
--- a/python-ethtool/etherinfo_ipv6_obj.c
+++ b/python-ethtool/etherinfo_ipv6_obj.c
@@ -152,7 +152,7 @@ PyObject *_ethtool_etherinfo_ipv6_str(etherinfo_ipv6addr_py *self)
}
rtnl_scope2str(self->addrdata->scope, scope, 64);
- return PyString_FromFormat("[%s] %s/%i\n",
+ return PyString_FromFormat("[%s] %s/%i",
scope,
self->addrdata->address,
self->addrdata->netmask);