From 12d01c90f996094bffc7e0f7e9e12b6f2ad17a7c Mon Sep 17 00:00:00 2001 From: Romain Date: Thu, 7 Nov 2019 10:56:45 +0000 Subject: [PATCH] clean up imports --- use_cases/attachment.md | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/use_cases/attachment.md b/use_cases/attachment.md index f71fed3a8..8ec7565dc 100644 --- a/use_cases/attachment.md +++ b/use_cases/attachment.md @@ -3,22 +3,10 @@ ```python import base64 import os -import json -from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import ( Mail, Attachment, FileContent, FileName, FileType, Disposition, ContentId) -try: - # Python 3 - import urllib.request as urllib -except ImportError: - # Python 2 - import urllib2 as urllib - -import os -import json from sendgrid import SendGridAPIClient -from sendgrid.helpers.mail import Mail message = Mail( from_email='from_email@example.com', @@ -46,4 +34,4 @@ try: except Exception as e: print(e.message) -``` \ No newline at end of file +```