Skip to content

Commit cf73a44

Browse files
committed
Fix import order
1 parent 8690486 commit cf73a44

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

gmail/snippet/send mail/create_draft_with_attachment.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,16 @@
1313
limitations under the License.
1414
"""
1515
# [START gmail_create_draft_with_attachment]
16-
1716
from __future__ import print_function
1817

1918
import base64
2019
import mimetypes
2120
import os
21+
from email.message import EmailMessage
2222
from email.mime.audio import MIMEAudio
2323
from email.mime.base import MIMEBase
2424
from email.mime.image import MIMEImage
25-
from email.mime.multipart import MIMEMultipart
2625
from email.mime.text import MIMEText
27-
from email.message import EmailMessage
2826

2927
import google.auth
3028
from googleapiclient.discovery import build
@@ -52,7 +50,7 @@ def gmail_create_draft_with_attachment():
5250
mime_message['From'] = 'gduser2@workspacesamples.dev'
5351
mime_message['Subject'] = 'sample with attachment'
5452

55-
# text
53+
# text
5654
mime_message.set_content(
5755
'Hi, this is automated mail with attachment.'
5856
'Please do not reply.'

0 commit comments

Comments
 (0)