# HG changeset patch # User Oscar Cortez # Date 1538687803 21600 # Thu Oct 04 15:16:43 2018 -0600 # Node ID a0f27df3435f538e412f3e3c5dbb2c470827858d # Parent e0735d34a20d39b8bb0fda8f09e2db2dd1d6904d pep8ify some things diff --git a/sendy/api.py b/sendy/api.py --- a/sendy/api.py +++ b/sendy/api.py @@ -8,8 +8,8 @@ class SendyAPI: - ''' Class used to map to all Sendy API endpoints - ''' + """ Class used to map to all Sendy API endpoints + """ def __init__(self, host, api_key=None, debug=False): self.host = host @@ -24,11 +24,6 @@ 'list', 'email', 'name', - 'country', - 'ipaddress', - 'referrer', - 'gdpr', - 'hp', ], extra_param={'boolean': 'true'}, success_message='1', @@ -88,6 +83,8 @@ 'query_string', 'send_campaign', ], - success_message=['Campaign created', 'Campaign created and now sending'], + success_message=[ + 'Campaign created', 'Campaign created and now sending' + ], method='POST', ) diff --git a/sendy/binder.py b/sendy/binder.py --- a/sendy/binder.py +++ b/sendy/binder.py @@ -1,17 +1,16 @@ from __future__ import unicode_literals -import json import logging import requests -from .exceptions import SendyError - try: from urlparse import urljoin except ImportError: from urllib.parse import urljoin +from .exceptions import SendyError + log = logging.getLogger(__name__)