From c3985520e5d4f1de46d1f175f1359d6d18bb031c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 13 May 2016 12:25:12 -0700 Subject: [PATCH] webhooks: Remove unnecessary get_client imports. --- zerver/views/webhooks/circleci.py | 1 - zerver/views/webhooks/codeship.py | 1 - zerver/views/webhooks/jira.py | 2 +- zerver/views/webhooks/newrelic.py | 1 - zerver/views/webhooks/pagerduty.py | 1 - zerver/views/webhooks/pingdom.py | 1 - zerver/views/webhooks/pivotal.py | 1 - zerver/views/webhooks/taiga.py | 1 - zerver/views/webhooks/teamcity.py | 2 +- zerver/views/webhooks/travis.py | 1 - zerver/views/webhooks/yo.py | 1 - 11 files changed, 2 insertions(+), 11 deletions(-) diff --git a/zerver/views/webhooks/circleci.py b/zerver/views/webhooks/circleci.py index cf93a819cb..670fd610b1 100644 --- a/zerver/views/webhooks/circleci.py +++ b/zerver/views/webhooks/circleci.py @@ -1,6 +1,5 @@ # Webhooks for external integrations. from __future__ import absolute_import -from zerver.models import get_client from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view diff --git a/zerver/views/webhooks/codeship.py b/zerver/views/webhooks/codeship.py index aa54cf0da8..c570877575 100644 --- a/zerver/views/webhooks/codeship.py +++ b/zerver/views/webhooks/codeship.py @@ -1,6 +1,5 @@ # Webhooks for external integrations. from __future__ import absolute_import -from zerver.models import get_client from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view diff --git a/zerver/views/webhooks/jira.py b/zerver/views/webhooks/jira.py index 176c30a518..a7b12f020b 100644 --- a/zerver/views/webhooks/jira.py +++ b/zerver/views/webhooks/jira.py @@ -3,7 +3,7 @@ from __future__ import absolute_import from django.db.models import Q from django.conf import settings -from zerver.models import get_client, UserProfile, get_user_profile_by_email +from zerver.models import UserProfile, get_user_profile_by_email from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error from zerver.decorator import api_key_only_webhook_view, has_request_variables, REQ diff --git a/zerver/views/webhooks/newrelic.py b/zerver/views/webhooks/newrelic.py index 46a959f7e4..658140b3cd 100644 --- a/zerver/views/webhooks/newrelic.py +++ b/zerver/views/webhooks/newrelic.py @@ -1,6 +1,5 @@ # Webhooks for external integrations. from __future__ import absolute_import -from zerver.models import get_client from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error from zerver.lib.validator import check_dict diff --git a/zerver/views/webhooks/pagerduty.py b/zerver/views/webhooks/pagerduty.py index fe65a86fd7..ad33a8c1b9 100644 --- a/zerver/views/webhooks/pagerduty.py +++ b/zerver/views/webhooks/pagerduty.py @@ -1,6 +1,5 @@ # Webhooks for external integrations. from __future__ import absolute_import -from zerver.models import get_client from zerver.lib.actions import check_send_message from zerver.lib.response import json_success from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view diff --git a/zerver/views/webhooks/pingdom.py b/zerver/views/webhooks/pingdom.py index fd4e22c85c..a52f2a0e1e 100644 --- a/zerver/views/webhooks/pingdom.py +++ b/zerver/views/webhooks/pingdom.py @@ -1,6 +1,5 @@ # Webhooks for external integrations. from __future__ import absolute_import -from zerver.models import get_client from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view diff --git a/zerver/views/webhooks/pivotal.py b/zerver/views/webhooks/pivotal.py index 725ae90eff..6c75967d55 100644 --- a/zerver/views/webhooks/pivotal.py +++ b/zerver/views/webhooks/pivotal.py @@ -1,6 +1,5 @@ # Webhooks for external integrations. from __future__ import absolute_import -from zerver.models import get_client from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error from zerver.decorator import api_key_only_webhook_view, REQ, has_request_variables diff --git a/zerver/views/webhooks/taiga.py b/zerver/views/webhooks/taiga.py index 325c785b3e..00f6c5c314 100644 --- a/zerver/views/webhooks/taiga.py +++ b/zerver/views/webhooks/taiga.py @@ -19,7 +19,6 @@ subject of US/task should be in bold. """ from __future__ import absolute_import -from zerver.models import get_client from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view diff --git a/zerver/views/webhooks/teamcity.py b/zerver/views/webhooks/teamcity.py index 009f3b1de3..921d2ed834 100644 --- a/zerver/views/webhooks/teamcity.py +++ b/zerver/views/webhooks/teamcity.py @@ -1,7 +1,7 @@ # Webhooks for teamcity integration from __future__ import absolute_import from django.db.models import Q -from zerver.models import get_client, UserProfile +from zerver.models import UserProfile from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view diff --git a/zerver/views/webhooks/travis.py b/zerver/views/webhooks/travis.py index c5a9a4a4d4..b67f2e4b8a 100644 --- a/zerver/views/webhooks/travis.py +++ b/zerver/views/webhooks/travis.py @@ -1,6 +1,5 @@ # Webhooks for external integrations. from __future__ import absolute_import -from zerver.models import get_client from zerver.lib.actions import check_send_message from zerver.lib.response import json_success from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view diff --git a/zerver/views/webhooks/yo.py b/zerver/views/webhooks/yo.py index 9d34bc49cc..f107e5d94a 100644 --- a/zerver/views/webhooks/yo.py +++ b/zerver/views/webhooks/yo.py @@ -1,6 +1,5 @@ # Webhooks for external integrations. from __future__ import absolute_import -from zerver.models import get_client from zerver.lib.actions import check_send_message from zerver.lib.response import json_success from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view