[Pkg-privacy-commits] [pyptlib] 46/136: Flush stdout after printing protocol lines.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:25:06 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository pyptlib.

commit 94e6c6763e5276c43416bd40ac1cb4e5a8804e58
Author: George Kadianakis <desnacked at riseup.net>
Date:   Sat Sep 15 19:12:16 2012 +0300

    Flush stdout after printing protocol lines.
---
 src/pyptlib/config.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/pyptlib/config.py b/src/pyptlib/config.py
index 9faea26..5889b70 100644
--- a/src/pyptlib/config.py
+++ b/src/pyptlib/config.py
@@ -6,8 +6,7 @@
     This module contains the parts of the API which are shared by both client and server implementations of the protocol.
 """
 
-import os
-import logging
+import os, sys
 
 __docformat__ = 'restructuredtext'
 
@@ -117,8 +116,7 @@ class Config:
 
     def emit(self, msg):
         print msg
-        logging.error(msg)
-
+        sys.stdout.flush()
 
 # Exception thrown when there is an error parsing the configuration parameters provided by Tor in environment variables
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pyptlib.git



More information about the Pkg-privacy-commits mailing list