mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 07:13:02 +00:00 
			
		
		
		
	Fix #571
This commit is contained in:
		| @@ -1,6 +1,7 @@ | |||||||
| #!/usr/bin/env python | #!/usr/bin/env python | ||||||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||||
|  |  | ||||||
|  | from __future__ import print_function | ||||||
| import smtplib | import smtplib | ||||||
| import threading | import threading | ||||||
| from datetime import datetime | from datetime import datetime | ||||||
| @@ -11,7 +12,6 @@ import sys | |||||||
| from email.generator import Generator | from email.generator import Generator | ||||||
| import web | import web | ||||||
| from flask_babel import gettext as _ | from flask_babel import gettext as _ | ||||||
| # from babel.dates import format_datetime |  | ||||||
| import re | import re | ||||||
|  |  | ||||||
| try: | try: | ||||||
| @@ -44,9 +44,7 @@ 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: | ||||||
|             # from __future__ import print_function |             print('send:', repr(str), file=sys.stderr) | ||||||
|             # 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: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 OzzieIsaacs
					OzzieIsaacs