[Blends-commit] [SCM] website branch, master, updated. 2cc94093b312bcea3731d07f757b854fb65081b8

Andreas Tille tille at debian.org
Tue Mar 15 09:56:41 UTC 2016


The following commit has been merged in the master branch:
commit 2cc94093b312bcea3731d07f757b854fb65081b8
Author: Andreas Tille <tille at debian.org>
Date:   Tue Mar 15 10:56:17 2016 +0100

    print throws syntax error - use stderr.write instead

diff --git a/webtools/blendstasktools_udd.py b/webtools/blendstasktools_udd.py
index 25dd678..2ebbc5e 100644
--- a/webtools/blendstasktools_udd.py
+++ b/webtools/blendstasktools_udd.py
@@ -284,7 +284,7 @@ except psycopg2.OperationalError as err:
     conn = psycopg2.connect("service=udd")
   except psycopg2.OperationalError as err:
     # logger not known at this state: logger.warning
-    print("Service=udd seems not to be installed on this host.\tMessage: %s" % (str(err)), file=stderr)
+    stderr.write("Service=udd seems not to be installed on this host.\tMessage: %s" % (str(err)))
     try:
         conn = psycopg2.connect(host="localhost",port=DEFAULTPORT,user="guest",database="udd")
     except psycopg2.OperationalError:

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list