Commits

Steve Borho committed d6881c0

serve: set a closed attribute to prevent traceback

It would be better if Mercurial didn't depend on this attribute, but
it's simple for us to work around this problem.

Closes #891

  • Participants
  • Parent commits cd85564
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/serve.py

         sys.stdout = self
         sys.stderr = self
 
+        # Set a closed attribute to better mimic stderr (issue #891)
+        self.closed = True
+
         # Override mercurial.commands.serve() with our own version
         # that supports being stopped
         commands.table.update(thg_serve_cmd)