From f7732dddb17447f573007171c856c7ee18c041f3 Mon Sep 17 00:00:00 2001 From: vinuthegr8 Date: Fri, 5 Oct 2018 18:34:32 +0530 Subject: [PATCH 1/3] Fixed syntax errors in Kitchen sink Python example code --- proposals/mail-helper-refactor.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proposals/mail-helper-refactor.md b/proposals/mail-helper-refactor.md index 5a0127fd6..4f21eb5f7 100644 --- a/proposals/mail-helper-refactor.md +++ b/proposals/mail-helper-refactor.md @@ -191,7 +191,7 @@ msg.custom_arg = CustomArg('marketing3', 'true', p=1) msg.custom_arg = CustomArg('transactional3', 'false', p=1) msg.custom_arg = [ CustomArg('marketing4', 'false', p=1), - CustomArg('transactional4': 'true', p=1) + CustomArg('transactional4', 'true', p=1) ] msg.send_at = SendAt(1461775052, p=1) @@ -230,13 +230,13 @@ msg.template_id = TemplateId('13b8f94f-bcae-4ec6-b752-70d6cb59f932') msg.global_header = Header('X-Day', 'Monday') msg.global_headers = [ Header('X-Month', 'January'), - Header('X-Year': '2017') + Header('X-Year', '2017') ] msg.section = Section('%section1%', 'Substitution for Section 1 Tag') msg.section = [ Section('%section2%', 'Substitution for Section 2 Tag'), - Section('%section3%': 'Substitution for Section 3 Tag') + Section('%section3%', 'Substitution for Section 3 Tag') ] try: From a25435e4fbf961e22bb16bf8cdbc38478b6e6d3e Mon Sep 17 00:00:00 2001 From: vinuthegr8 Date: Fri, 5 Oct 2018 18:54:49 +0530 Subject: [PATCH 2/3] Fixed ModuleNotFoundError --- sendgrid/__init__.py | 6 +++--- sendgrid/sendgrid.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sendgrid/__init__.py b/sendgrid/__init__.py index 1b5100c01..4d8324235 100644 --- a/sendgrid/__init__.py +++ b/sendgrid/__init__.py @@ -15,7 +15,7 @@ Modules to help with common tasks. """ -from .version import __version__ # noqa +from version import __version__ # noqa # v3 API -from .sendgrid import SendGridAPIClient # noqa -from .helpers.mail import Email # noqa +from sendgrid import SendGridAPIClient # noqa +from helpers.mail import Email # noqa diff --git a/sendgrid/sendgrid.py b/sendgrid/sendgrid.py index cc3450091..85478b6fd 100644 --- a/sendgrid/sendgrid.py +++ b/sendgrid/sendgrid.py @@ -18,7 +18,7 @@ import python_http_client -from .version import __version__ +from version import __version__ class SendGridAPIClient(object): From 5fc6178a70b9f8928577ea02a919d48667a01634 Mon Sep 17 00:00:00 2001 From: vinuthegr8 Date: Fri, 5 Oct 2018 19:37:25 +0530 Subject: [PATCH 3/3] Reverted changes to files in /sendgrid --- sendgrid/__init__.py | 6 +++--- sendgrid/sendgrid.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sendgrid/__init__.py b/sendgrid/__init__.py index 4d8324235..1b5100c01 100644 --- a/sendgrid/__init__.py +++ b/sendgrid/__init__.py @@ -15,7 +15,7 @@ Modules to help with common tasks. """ -from version import __version__ # noqa +from .version import __version__ # noqa # v3 API -from sendgrid import SendGridAPIClient # noqa -from helpers.mail import Email # noqa +from .sendgrid import SendGridAPIClient # noqa +from .helpers.mail import Email # noqa diff --git a/sendgrid/sendgrid.py b/sendgrid/sendgrid.py index 85478b6fd..cc3450091 100644 --- a/sendgrid/sendgrid.py +++ b/sendgrid/sendgrid.py @@ -18,7 +18,7 @@ import python_http_client -from version import __version__ +from .version import __version__ class SendGridAPIClient(object):