--- a/eric6/E5Network/E5GoogleMail.py Sat Sep 21 15:37:43 2019 +0200 +++ b/eric6/E5Network/E5GoogleMail.py Sat Sep 21 16:04:17 2019 +0200 @@ -24,8 +24,9 @@ import Globals -from .E5GoogleMailHelpers import CLIENT_SECRET_FILE, SCOPES, TOKEN_FILE, \ - APPLICATION_NAME +from .E5GoogleMailHelpers import ( + CLIENT_SECRET_FILE, SCOPES, TOKEN_FILE, APPLICATION_NAME +) class E5GoogleMailAuthBrowser(QDialog): @@ -253,8 +254,8 @@ count += 1 message = self.__messages.pop(0) message1 = self.__prepareMessage(message) - service.users().messages()\ - .send(userId="me", body=message1).execute() + service.users().messages().send( + userId="me", body=message1).execute() results.append(self.tr("Message #{0} sent.").format(count)) self.sendResult.emit(True, "\n\n".join(results))