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): def send(self, str):
"""Send `str' to the server.""" """Send `str' to the server."""
if self.debuglevel > 0: 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: if hasattr(self, 'sock') and self.sock:
try: try:
if self.transferSize: if self.transferSize:
@ -235,7 +237,7 @@ class StderrLogger(object):
def write(self, message): def write(self, message):
if message == '\n': if message == '\n':
self.logger.debug(self.buffer) self.logger.debug(self.buffer)
print self.buffer print(self.buffer)
self.buffer = '' self.buffer = ''
else: else:
self.buffer += message self.buffer += message

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

Loading…
Cancel
Save