From 7115a29bee23973ec55bb41ab3f54b46069c7ed0 Mon Sep 17 00:00:00 2001 From: rht Date: Wed, 27 Sep 2017 10:43:47 +0200 Subject: [PATCH] zerver/webhooks: Remove absolute_import. --- zerver/webhooks/airbrake/view.py | 1 - zerver/webhooks/appfollow/view.py | 1 - zerver/webhooks/basecamp/view.py | 1 - zerver/webhooks/beanstalk/view.py | 1 - zerver/webhooks/bitbucket/view.py | 1 - zerver/webhooks/bitbucket2/view.py | 1 - zerver/webhooks/circleci/view.py | 1 - zerver/webhooks/codeship/view.py | 1 - zerver/webhooks/crashlytics/view.py | 1 - zerver/webhooks/delighted/view.py | 1 - zerver/webhooks/deskdotcom/view.py | 1 - zerver/webhooks/freshdesk/view.py | 1 - zerver/webhooks/github/view.py | 1 - zerver/webhooks/github_dispatcher.py | 1 - zerver/webhooks/github_webhook/view.py | 1 - zerver/webhooks/gitlab/view.py | 1 - zerver/webhooks/gogs/view.py | 1 - zerver/webhooks/gosquared/view.py | 1 - zerver/webhooks/greenhouse/view.py | 1 - zerver/webhooks/hellosign/view.py | 1 - zerver/webhooks/helloworld/view.py | 1 - zerver/webhooks/heroku/view.py | 1 - zerver/webhooks/homeassistant/view.py | 1 - zerver/webhooks/ifttt/view.py | 1 - zerver/webhooks/jira/view.py | 1 - zerver/webhooks/librato/view.py | 1 - zerver/webhooks/mention/view.py | 1 - zerver/webhooks/newrelic/view.py | 1 - zerver/webhooks/opsgenie/view.py | 1 - zerver/webhooks/pagerduty/view.py | 1 - zerver/webhooks/papertrail/view.py | 1 - zerver/webhooks/pingdom/view.py | 1 - zerver/webhooks/pivotal/view.py | 1 - zerver/webhooks/semaphore/view.py | 1 - zerver/webhooks/sentry/view.py | 1 - zerver/webhooks/slack/view.py | 1 - zerver/webhooks/solano/view.py | 1 - zerver/webhooks/splunk/view.py | 1 - zerver/webhooks/stripe/view.py | 1 - zerver/webhooks/taiga/view.py | 1 - zerver/webhooks/teamcity/view.py | 1 - zerver/webhooks/transifex/view.py | 1 - zerver/webhooks/travis/view.py | 1 - zerver/webhooks/trello/view/__init__.py | 1 - zerver/webhooks/updown/view.py | 1 - zerver/webhooks/wordpress/view.py | 1 - zerver/webhooks/yo/view.py | 1 - zerver/webhooks/zapier/view.py | 1 - zerver/webhooks/zendesk/view.py | 1 - 49 files changed, 49 deletions(-) diff --git a/zerver/webhooks/airbrake/view.py b/zerver/webhooks/airbrake/view.py index 0f6c5e57c0..f1b893f5ac 100644 --- a/zerver/webhooks/airbrake/view.py +++ b/zerver/webhooks/airbrake/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from typing import Dict, Any, Text from django.http import HttpRequest, HttpResponse from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/appfollow/view.py b/zerver/webhooks/appfollow/view.py index 400c9f3ff2..65cf2fc6cb 100644 --- a/zerver/webhooks/appfollow/view.py +++ b/zerver/webhooks/appfollow/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import import re from django.http import HttpRequest, HttpResponse diff --git a/zerver/webhooks/basecamp/view.py b/zerver/webhooks/basecamp/view.py index 22b16c6606..8f24cccc0e 100644 --- a/zerver/webhooks/basecamp/view.py +++ b/zerver/webhooks/basecamp/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import import re import logging from typing import Any, Dict, Text diff --git a/zerver/webhooks/beanstalk/view.py b/zerver/webhooks/beanstalk/view.py index 965c19f5a3..689baed3a3 100644 --- a/zerver/webhooks/beanstalk/view.py +++ b/zerver/webhooks/beanstalk/view.py @@ -1,6 +1,5 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from zerver.models import get_client, UserProfile from zerver.lib.actions import check_send_message diff --git a/zerver/webhooks/bitbucket/view.py b/zerver/webhooks/bitbucket/view.py index 1c9181518f..e7f2ac75af 100644 --- a/zerver/webhooks/bitbucket/view.py +++ b/zerver/webhooks/bitbucket/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from typing import Any, Mapping, Text, Optional diff --git a/zerver/webhooks/bitbucket2/view.py b/zerver/webhooks/bitbucket2/view.py index 944f1be0f5..92dc403693 100644 --- a/zerver/webhooks/bitbucket2/view.py +++ b/zerver/webhooks/bitbucket2/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import import re from functools import partial from six.moves import zip diff --git a/zerver/webhooks/circleci/view.py b/zerver/webhooks/circleci/view.py index 3d5624cee2..7e3c85d19b 100644 --- a/zerver/webhooks/circleci/view.py +++ b/zerver/webhooks/circleci/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from typing import Any, Dict, Text diff --git a/zerver/webhooks/codeship/view.py b/zerver/webhooks/codeship/view.py index b5c0d3f6a6..89c70e6f2a 100644 --- a/zerver/webhooks/codeship/view.py +++ b/zerver/webhooks/codeship/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.utils.translation import ugettext as _ from django.http import HttpRequest, HttpResponse diff --git a/zerver/webhooks/crashlytics/view.py b/zerver/webhooks/crashlytics/view.py index abf3f28c13..194ca6748e 100644 --- a/zerver/webhooks/crashlytics/view.py +++ b/zerver/webhooks/crashlytics/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/delighted/view.py b/zerver/webhooks/delighted/view.py index 61416adf3d..c70fb4dc18 100644 --- a/zerver/webhooks/delighted/view.py +++ b/zerver/webhooks/delighted/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/deskdotcom/view.py b/zerver/webhooks/deskdotcom/view.py index 41120b4678..6c0e9170e9 100644 --- a/zerver/webhooks/deskdotcom/view.py +++ b/zerver/webhooks/deskdotcom/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from zerver.models import get_client, UserProfile from zerver.lib.actions import check_send_message diff --git a/zerver/webhooks/freshdesk/view.py b/zerver/webhooks/freshdesk/view.py index 0796cb2e82..83e373b78e 100644 --- a/zerver/webhooks/freshdesk/view.py +++ b/zerver/webhooks/freshdesk/view.py @@ -1,5 +1,4 @@ """Webhooks for external integrations.""" -from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/github/view.py b/zerver/webhooks/github/view.py index c8323a25cb..ea70ae8274 100644 --- a/zerver/webhooks/github/view.py +++ b/zerver/webhooks/github/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.conf import settings from zerver.models import get_client, UserProfile from zerver.lib.response import json_success diff --git a/zerver/webhooks/github_dispatcher.py b/zerver/webhooks/github_dispatcher.py index 0a2e587610..ff77eddc47 100644 --- a/zerver/webhooks/github_dispatcher.py +++ b/zerver/webhooks/github_dispatcher.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from django.views.decorators.csrf import csrf_exempt from .github_webhook.view import api_github_webhook diff --git a/zerver/webhooks/github_webhook/view.py b/zerver/webhooks/github_webhook/view.py index 5b15964527..e9a2581c0a 100644 --- a/zerver/webhooks/github_webhook/view.py +++ b/zerver/webhooks/github_webhook/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import import re import logging from functools import partial diff --git a/zerver/webhooks/gitlab/view.py b/zerver/webhooks/gitlab/view.py index 38fbb67873..b2f5b33030 100644 --- a/zerver/webhooks/gitlab/view.py +++ b/zerver/webhooks/gitlab/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from functools import partial from zerver.lib.actions import check_send_message from zerver.lib.response import json_success diff --git a/zerver/webhooks/gogs/view.py b/zerver/webhooks/gogs/view.py index a25f2788d3..d451424319 100644 --- a/zerver/webhooks/gogs/view.py +++ b/zerver/webhooks/gogs/view.py @@ -1,6 +1,5 @@ # -*- coding: utf-8 -*- # vim:fenc=utf-8 -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/gosquared/view.py b/zerver/webhooks/gosquared/view.py index f772f427ab..de6defa49c 100644 --- a/zerver/webhooks/gosquared/view.py +++ b/zerver/webhooks/gosquared/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/greenhouse/view.py b/zerver/webhooks/greenhouse/view.py index b1d8afcf58..7fa2b47fd8 100644 --- a/zerver/webhooks/greenhouse/view.py +++ b/zerver/webhooks/greenhouse/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.utils.translation import ugettext as _ from django.http import HttpRequest, HttpResponse diff --git a/zerver/webhooks/hellosign/view.py b/zerver/webhooks/hellosign/view.py index c567c74b05..c8462af267 100644 --- a/zerver/webhooks/hellosign/view.py +++ b/zerver/webhooks/hellosign/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/helloworld/view.py b/zerver/webhooks/helloworld/view.py index 3f24c0f525..4d6bc57c60 100644 --- a/zerver/webhooks/helloworld/view.py +++ b/zerver/webhooks/helloworld/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/heroku/view.py b/zerver/webhooks/heroku/view.py index 5eb970c02c..f044c5a0c8 100644 --- a/zerver/webhooks/heroku/view.py +++ b/zerver/webhooks/heroku/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from typing import Text from django.http import HttpRequest, HttpResponse diff --git a/zerver/webhooks/homeassistant/view.py b/zerver/webhooks/homeassistant/view.py index dd66a37978..75ff4b3045 100644 --- a/zerver/webhooks/homeassistant/view.py +++ b/zerver/webhooks/homeassistant/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/ifttt/view.py b/zerver/webhooks/ifttt/view.py index 914f1745cc..cc7b2be884 100644 --- a/zerver/webhooks/ifttt/view.py +++ b/zerver/webhooks/ifttt/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.utils.translation import ugettext as _ from typing import Any, Callable, Dict from django.http import HttpRequest, HttpResponse diff --git a/zerver/webhooks/jira/view.py b/zerver/webhooks/jira/view.py index 44b4ff3297..e0efbaf26c 100644 --- a/zerver/webhooks/jira/view.py +++ b/zerver/webhooks/jira/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from typing import Any, Dict, List, Optional, Text, Tuple from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/librato/view.py b/zerver/webhooks/librato/view.py index 0f525c8f50..5d8b84c916 100644 --- a/zerver/webhooks/librato/view.py +++ b/zerver/webhooks/librato/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from datetime import datetime from typing import Any, Dict, List, Optional, Callable, Tuple, Text diff --git a/zerver/webhooks/mention/view.py b/zerver/webhooks/mention/view.py index c8e5f4e068..fa9ada7fbc 100644 --- a/zerver/webhooks/mention/view.py +++ b/zerver/webhooks/mention/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/newrelic/view.py b/zerver/webhooks/newrelic/view.py index 4256cf6358..c2717a860f 100644 --- a/zerver/webhooks/newrelic/view.py +++ b/zerver/webhooks/newrelic/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from typing import Any, Callable, Dict, Iterable, Optional, Tuple, Text from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/opsgenie/view.py b/zerver/webhooks/opsgenie/view.py index 1dacd85e9f..a6a51c96b9 100644 --- a/zerver/webhooks/opsgenie/view.py +++ b/zerver/webhooks/opsgenie/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/pagerduty/view.py b/zerver/webhooks/pagerduty/view.py index 399d1e9532..d860743cd0 100644 --- a/zerver/webhooks/pagerduty/view.py +++ b/zerver/webhooks/pagerduty/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from zerver.lib.actions import check_send_message from zerver.lib.response import json_success diff --git a/zerver/webhooks/papertrail/view.py b/zerver/webhooks/papertrail/view.py index 821c876afc..50a33c755e 100644 --- a/zerver/webhooks/papertrail/view.py +++ b/zerver/webhooks/papertrail/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/pingdom/view.py b/zerver/webhooks/pingdom/view.py index 90100de6d3..cb37f68aa2 100644 --- a/zerver/webhooks/pingdom/view.py +++ b/zerver/webhooks/pingdom/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from typing import Any, Dict, Text from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/pivotal/view.py b/zerver/webhooks/pivotal/view.py index 22b81cc9b9..4f98c1b42b 100644 --- a/zerver/webhooks/pivotal/view.py +++ b/zerver/webhooks/pivotal/view.py @@ -1,5 +1,4 @@ """Webhooks for external integrations.""" -from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/semaphore/view.py b/zerver/webhooks/semaphore/view.py index 5eb8f9a518..1a6853a0c4 100644 --- a/zerver/webhooks/semaphore/view.py +++ b/zerver/webhooks/semaphore/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/sentry/view.py b/zerver/webhooks/sentry/view.py index 3805ba593c..477bc922e8 100644 --- a/zerver/webhooks/sentry/view.py +++ b/zerver/webhooks/sentry/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from zerver.models import UserProfile from zerver.lib.actions import check_send_message diff --git a/zerver/webhooks/slack/view.py b/zerver/webhooks/slack/view.py index b199859fd5..638ae5d2f5 100644 --- a/zerver/webhooks/slack/view.py +++ b/zerver/webhooks/slack/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.utils.translation import ugettext as _ from django.http import HttpRequest, HttpResponse from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/solano/view.py b/zerver/webhooks/solano/view.py index 7bf6cef087..32f20fdaa5 100644 --- a/zerver/webhooks/solano/view.py +++ b/zerver/webhooks/solano/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/splunk/view.py b/zerver/webhooks/splunk/view.py index b4ae64bd3b..9dae6b26f3 100644 --- a/zerver/webhooks/splunk/view.py +++ b/zerver/webhooks/splunk/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/stripe/view.py b/zerver/webhooks/stripe/view.py index 17fbfaafb3..b228ec2bf8 100644 --- a/zerver/webhooks/stripe/view.py +++ b/zerver/webhooks/stripe/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error diff --git a/zerver/webhooks/taiga/view.py b/zerver/webhooks/taiga/view.py index a25e38e8e5..3819fe3d0c 100644 --- a/zerver/webhooks/taiga/view.py +++ b/zerver/webhooks/taiga/view.py @@ -18,7 +18,6 @@ etc. If no there's no meaningful emoji for certain event, the defaults are used: subject of US/task should be in bold. """ -from __future__ import absolute_import from typing import Any, Dict, List, Mapping, Optional, Tuple, Text from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/teamcity/view.py b/zerver/webhooks/teamcity/view.py index 58be486185..0240d00364 100644 --- a/zerver/webhooks/teamcity/view.py +++ b/zerver/webhooks/teamcity/view.py @@ -1,5 +1,4 @@ # Webhooks for teamcity integration -from __future__ import absolute_import from django.db.models import Q from django.http import HttpRequest, HttpResponse diff --git a/zerver/webhooks/transifex/view.py b/zerver/webhooks/transifex/view.py index f25c7af00e..2ae68bac5a 100644 --- a/zerver/webhooks/transifex/view.py +++ b/zerver/webhooks/transifex/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.utils.translation import ugettext as _ from django.http import HttpRequest, HttpResponse from zerver.models import UserProfile diff --git a/zerver/webhooks/travis/view.py b/zerver/webhooks/travis/view.py index 7ed0fc6320..6a92417e50 100644 --- a/zerver/webhooks/travis/view.py +++ b/zerver/webhooks/travis/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.http import HttpRequest, HttpResponse diff --git a/zerver/webhooks/trello/view/__init__.py b/zerver/webhooks/trello/view/__init__.py index f5f33796b7..c96be0b0c9 100644 --- a/zerver/webhooks/trello/view/__init__.py +++ b/zerver/webhooks/trello/view/__init__.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import import ujson from typing import Mapping, Any, Tuple, Text, Optional from django.utils.translation import ugettext as _ diff --git a/zerver/webhooks/updown/view.py b/zerver/webhooks/updown/view.py index 7f8786afc2..4f73907b38 100644 --- a/zerver/webhooks/updown/view.py +++ b/zerver/webhooks/updown/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import import re from datetime import datetime from typing import Any, Dict, List diff --git a/zerver/webhooks/wordpress/view.py b/zerver/webhooks/wordpress/view.py index f72e4686ac..f50079be4d 100644 --- a/zerver/webhooks/wordpress/view.py +++ b/zerver/webhooks/wordpress/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from django.utils.translation import ugettext as _ from django.http import HttpRequest, HttpResponse from zerver.models import get_client, UserProfile diff --git a/zerver/webhooks/yo/view.py b/zerver/webhooks/yo/view.py index bb3ca39605..ca538ce3a3 100644 --- a/zerver/webhooks/yo/view.py +++ b/zerver/webhooks/yo/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import 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/webhooks/zapier/view.py b/zerver/webhooks/zapier/view.py index 98877e0bc9..dc2baca3d8 100644 --- a/zerver/webhooks/zapier/view.py +++ b/zerver/webhooks/zapier/view.py @@ -1,4 +1,3 @@ -from __future__ import absolute_import from django.utils.translation import ugettext as _ from typing import Any, Callable, Dict from django.http import HttpRequest, HttpResponse diff --git a/zerver/webhooks/zendesk/view.py b/zerver/webhooks/zendesk/view.py index 2f53a063da..6c8bd1982a 100644 --- a/zerver/webhooks/zendesk/view.py +++ b/zerver/webhooks/zendesk/view.py @@ -1,5 +1,4 @@ # Webhooks for external integrations. -from __future__ import absolute_import from zerver.models import get_client, UserProfile from zerver.lib.actions import check_send_message from zerver.lib.response import json_success