Skip to content

Commit bffb267

Browse files
DucarrougeReshanholtz
authored andcommitted
clean up imports (#853)
1 parent 6fe402c commit bffb267

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

use_cases/attachment.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,10 @@
33
```python
44
import base64
55
import os
6-
import json
7-
from sendgrid import SendGridAPIClient
86
from sendgrid.helpers.mail import (
97
Mail, Attachment, FileContent, FileName,
108
FileType, Disposition, ContentId)
11-
try:
12-
# Python 3
13-
import urllib.request as urllib
14-
except ImportError:
15-
# Python 2
16-
import urllib2 as urllib
17-
18-
import os
19-
import json
209
from sendgrid import SendGridAPIClient
21-
from sendgrid.helpers.mail import Mail
2210

2311
message = Mail(
2412
from_email='from_email@example.com',
@@ -46,4 +34,4 @@ try:
4634
except Exception as e:
4735
print(e.message)
4836

49-
```
37+
```

0 commit comments

Comments
 (0)