Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.

Commit 3d1511a

Browse files
author
Matt Bernier
committed
Merge pull request #897 from epochblue/patch-1
Don't shadow library name in variable name
2 parents 839c1f6 + 41413d9 commit 3d1511a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/Code_Examples/python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ We recommend using SendGrid Python, our client library, <a href="https://github.
1515
# using SendGrid's Python Library - https://github.com/sendgrid/sendgrid-python
1616
import sendgrid
1717

18-
sendgrid = sendgrid.SendGridClient(api_user, api_key)
18+
sg = sendgrid.SendGridClient(api_user, api_key)
1919
message = sendgrid.Mail()
2020

2121
message.add_to("[email protected]")
2222
message.set_from("[email protected]")
2323
message.set_subject("Sending with SendGrid is Fun")
2424
message.set_html("and easy to do anywhere, even with Python")
2525

26-
sendgrid.send(message)
26+
sg.send(message)
2727
{% endcodeblock %}

0 commit comments

Comments
 (0)