home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 56 / CDPowerplay56Disc2.iso / demos / blade / data1.cab / Program_Executable_Files / Lib / ConsoleOutput.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2000-10-27  |  915 b   |  26 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 1.5)
  3.  
  4. import Console
  5. import sys
  6.  
  7. class ConsoleOutput:
  8.     softspace = 1
  9.     
  10.     def write(self, message):
  11.         if message is None:
  12.             Console.ConsoleOutput('None')
  13.         else:
  14.             Console.ConsoleOutput(message)
  15.  
  16.     
  17.     def flush(self):
  18.         pass
  19.  
  20.  
  21.  
  22. def InitConsole():
  23.     ConsoleOut = ConsoleOutput()
  24.     sys.stderr = sys.stdout = ConsoleOut
  25.  
  26.