Skip to content

Commit

Permalink
clean up imports (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
DucarrougeR authored and eshanholtz committed Jan 16, 2020
1 parent 6fe402c commit bffb267
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions use_cases/attachment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -46,4 +34,4 @@ try:
except Exception as e:
print(e.message)

```
```

0 comments on commit bffb267

Please sign in to comment.