mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-24 18:47:23 +00:00
Call print as a function
This commit is contained in:
parent
3db682cd15
commit
fdabb804cf
@ -44,7 +44,8 @@ class email(smtplib.SMTP):
|
||||
def send(self, str):
|
||||
"""Send `str' to the server."""
|
||||
if self.debuglevel > 0:
|
||||
print>> sys.stderr, 'send:', repr(str)
|
||||
from __future__ import print_function
|
||||
print('send:', repr(str), file=sys.stderr)
|
||||
if hasattr(self, 'sock') and self.sock:
|
||||
try:
|
||||
if self.transferSize:
|
||||
@ -235,7 +236,7 @@ class StderrLogger(object):
|
||||
def write(self, message):
|
||||
if message == '\n':
|
||||
self.logger.debug(self.buffer)
|
||||
print self.buffer
|
||||
print(self.buffer)
|
||||
self.buffer = ''
|
||||
else:
|
||||
self.buffer += message
|
||||
|
Loading…
Reference in New Issue
Block a user