Added two spaces before in-line # comments.
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ class StreamHandlerNoNewline( logging.StreamHandler ):
|
|||||||
try:
|
try:
|
||||||
msg = self.format( record )
|
msg = self.format( record )
|
||||||
fs = '%s' # was '%s\n'
|
fs = '%s' # was '%s\n'
|
||||||
if not hasattr( types, 'UnicodeType' ): #if no unicode support...
|
if not hasattr( types, 'UnicodeType' ): # if no unicode support...
|
||||||
self.stream.write( fs % msg )
|
self.stream.write( fs % msg )
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|||||||
+1
-1
@@ -97,7 +97,7 @@ from mininet.util import quietRun, fixLimits
|
|||||||
from mininet.util import createLink, macColonHex, ipStr, ipParse
|
from mininet.util import createLink, macColonHex, ipStr, ipParse
|
||||||
from mininet.xterm import cleanUpScreens, makeXterms
|
from mininet.xterm import cleanUpScreens, makeXterms
|
||||||
|
|
||||||
DATAPATHS = [ 'kernel' ] #[ 'user', 'kernel' ]
|
DATAPATHS = [ 'kernel' ] # [ 'user', 'kernel' ]
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"Initialize Mininet."
|
"Initialize Mininet."
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ class TreeTopo( Topo ):
|
|||||||
for i in range( 0, fanout ):
|
for i in range( 0, fanout ):
|
||||||
child = n + 1
|
child = n + 1
|
||||||
self.add_edge( me, child )
|
self.add_edge( me, child )
|
||||||
n = self.addTree( child, depth-1, fanout )
|
n = self.addTree( child, depth - 1, fanout )
|
||||||
return n
|
return n
|
||||||
|
|
||||||
# pylint: enable-msg=W0612
|
# pylint: enable-msg=W0612
|
||||||
|
|||||||
Reference in New Issue
Block a user