From 3ad3ffaa2de362c72aae30c179dcf585109e89eb Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Wed, 15 Oct 2014 07:38:06 -0700 Subject: [PATCH] fix some pylint complaints about first.py --- examples/tutorial/first.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/tutorial/first.py b/examples/tutorial/first.py index ba8b138bb..e2ae7c570 100644 --- a/examples/tutorial/first.py +++ b/examples/tutorial/first.py @@ -35,9 +35,10 @@ stack = ns.internet.InternetStackHelper() stack.Install(nodes) address = ns.internet.Ipv4AddressHelper() -address.SetBase(ns.network.Ipv4Address("10.1.1.0"), ns.network.Ipv4Mask("255.255.255.0")) +address.SetBase(ns.network.Ipv4Address("10.1.1.0"), + ns.network.Ipv4Mask("255.255.255.0")) -interfaces = address.Assign (devices); +interfaces = address.Assign(devices) echoServer = ns.applications.UdpEchoServerHelper(9) @@ -47,7 +48,7 @@ serverApps.Stop(ns.core.Seconds(10.0)) echoClient = ns.applications.UdpEchoClientHelper(interfaces.GetAddress(1), 9) echoClient.SetAttribute("MaxPackets", ns.core.UintegerValue(1)) -echoClient.SetAttribute("Interval", ns.core.TimeValue(ns.core.Seconds (1.0))) +echoClient.SetAttribute("Interval", ns.core.TimeValue(ns.core.Seconds(1.0))) echoClient.SetAttribute("PacketSize", ns.core.UintegerValue(1024)) clientApps = echoClient.Install(nodes.Get(0))