Merge pull request #1 from janeczku/master

8.8.18 update
pull/598/head
Fatih Ka 6 years ago committed by GitHub
commit de1ae7b992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,7 +44,9 @@ 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)
pass
if hasattr(self, 'sock') and self.sock:
try:
if self.transferSize:
@ -235,7 +237,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

@ -1864,7 +1864,7 @@ def render_read_books(page, are_read, as_xml=False):
if as_xml:
xml = render_title_template('feed.xml', entries=entries, pagination=pagination)
response = make_response(xml)
response.headers["Content-Type"] = "application/xml"
response.headers["Content-Type"] = "application/xml; charset=utf-8"
return response
else:
if are_read:

Loading…
Cancel
Save