##// END OF EJS Templates
BUG sphinxext: ensure sys.stdout is used for logging (#10904)
Joris Van den Bossche -
Show More
@@ -287,14 +287,6 b' class EmbeddedSphinxShell(object):'
287 IP = InteractiveShell.instance(config=config, profile_dir=profile)
287 IP = InteractiveShell.instance(config=config, profile_dir=profile)
288 atexit.register(self.cleanup)
288 atexit.register(self.cleanup)
289
289
290 sys.stdout = self.cout
291 sys.stderr = self.cout
292
293 # For debugging, so we can see normal output, use this:
294 #from IPython.utils.io import Tee
295 #sys.stdout = Tee(self.cout, channel='stdout') # dbg
296 #sys.stderr = Tee(self.cout, channel='stderr') # dbg
297
298 # Store a few parts of IPython we'll need.
290 # Store a few parts of IPython we'll need.
299 self.IP = IP
291 self.IP = IP
300 self.user_ns = self.IP.user_ns
292 self.user_ns = self.IP.user_ns
General Comments 0
You need to be logged in to leave comments. Login now