[Yt-svn] commit/yt: MatthewTurk: Fixing stderr issue with payload debugging

Bitbucket commits-noreply at bitbucket.org
Tue Sep 27 09:02:47 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/ede90f1ceaa3/
changeset:   ede90f1ceaa3
branch:      yt
user:        MatthewTurk
date:        2011-09-27 18:02:30
summary:     Fixing stderr issue with payload debugging
affected #:  1 file (-1 bytes)

--- a/yt/gui/reason/bottle_mods.py	Sun Sep 25 13:26:29 2011 -0400
+++ b/yt/gui/reason/bottle_mods.py	Tue Sep 27 12:02:30 2011 -0400
@@ -77,9 +77,9 @@
             if self.record:
                 self.recorded_payloads += self.payloads
             if self.debug:
-                orig_stderr.write("**** Delivering %s payloads\n" % (len(payloads)))
+                sys.__stderr__.write("**** Delivering %s payloads\n" % (len(payloads)))
                 for p in payloads:
-                    orig_stderr.write("****    %s\n" % p['type'])
+                    sys.__stderr__.write("****    %s\n" % p['type'])
             self.payloads = []
             self.event.clear()
         return payloads
@@ -90,7 +90,7 @@
             self.count += 1
             self.event.set()
             if self.debug:
-                orig_stderr.write("**** Adding payload of type %s\n" % (to_add['type']))
+                sys.__stderr__.write("**** Adding payload of type %s\n" % (to_add['type']))
 
     def replay_payloads(self):
         return self.recorded_payloads

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list