MCPcopy Create free account
hub / github.com/ImageEngine/cortex / __output

Method __output

python/IECore/WrappedTextFormatter.py:82–93  ·  view source on GitHub ↗
( self, text )

Source from the content-addressed store, hash-verified

80 return self
81
82 def __output( self, text ) :
83
84 self.__file.write( text )
85 self.__numNewLines = 0
86 while self.__numNewLines < len( text ) :
87 #sys.stdout.write( "("+text[(-1-self.__numNewLines)]+")" )
88 if text[(-1-self.__numNewLines)]=='\n' :
89 self.__numNewLines += 1
90 else :
91 break
92
93 #sys.stdout.write( "OUTPUT " + str( self.__numNewLines ) + "\n" )
94
95 def __indent( self ) :
96

Callers 3

headingMethod · 0.95
paragraphMethod · 0.95
__indentMethod · 0.95

Calls 2

lenFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected