* requestsync: Correct print statement redirect to sys,stderr.

This commit is contained in:
Jonathan Patrick Davies 2008-08-18 11:01:04 +01:00
parent b961efe7c5
commit 3919c682e6
2 changed files with 7 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ubuntu-dev-tools (0.40ubuntu2) intrepid; urgency=low
* requestsync: Correct print statement redirect to sys,stderr.
-- Jonathan Patrick Davies <jpds@ubuntu.com> Mon, 18 Aug 2008 10:59:59 +0100
ubuntu-dev-tools (0.40ubuntu1) intrepid; urgency=low
* Bazaar revision 174.

View File

@ -265,7 +265,7 @@ def mail_bug(source_package, subscribe, status, bugtitle, bugtext, keyid = None)
try:
s = smtplib.SMTP(mailserver, mailserver_port)
except socket.error, s:
print sys.stderr, >> "Could not connect to mailserver %s at port %s: %s (%i)" % \
print >> sys.stderr, "Could not connect to mailserver %s at port %s: %s (%i)" % \
(mailserver, mailserver_port, s[1], s[0])
print "The port %s may be firewalled. Please try using requestsync with" \
% mailserver_port