Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6ddd265

Browse files
more compat
1 parent 5fcfa95 commit 6ddd265

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/__init__.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
except ImportError:
66
import os
77
DEVNULL = open(os.devnull, 'wb')
8+
import os.path
89
import sys
910
import yaml
1011
import signal
@@ -350,13 +351,13 @@ def _send_email(self, title, content):
350351
s.connect(self.config['email']['from']['host'])
351352
s.login(user=self.config['email']['from']['username'],
352353
password=self.config['email']['from']['password'])
353-
s.send_message(msg)
354+
s.sendmail(msg['From'], msg['To'], msg=msg.as_string())
354355
s.quit()
355356

356357
def _sync_from_stream(self):
357358
logging.info("Start to dump from stream")
358359
docs = reduce(lambda x, y: y(x), [self._xml_parser,
359-
self._formatter,
360+
self._formatter,
360361
self._mapper,
361362
self._processor],
362363
self._xml_dump_loader())

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /