mirror of https://github.com/zulip/zulip.git
zerver/webhooks: Remove absolute_import.
This commit is contained in:
parent
e239e97351
commit
7115a29bee
|
@ -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 _
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# Webhooks for external integrations.
|
||||
from __future__ import absolute_import
|
||||
import re
|
||||
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
import re
|
||||
import logging
|
||||
from typing import Any, Dict, Text
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from typing import Any, Mapping, Text, Optional
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# Webhooks for external integrations.
|
||||
from __future__ import absolute_import
|
||||
import re
|
||||
from functools import partial
|
||||
from six.moves import zip
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 _
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
import re
|
||||
import logging
|
||||
from functools import partial
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# Webhooks for external integrations.
|
||||
from __future__ import absolute_import
|
||||
from typing import Text
|
||||
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 _
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Any, Dict, List, Optional, Callable, Tuple, Text
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 _
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 _
|
||||
|
|
|
@ -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 _
|
||||
|
|
|
@ -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 _
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 _
|
||||
|
|
|
@ -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 _
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 _
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
# Webhooks for external integrations.
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
|
||||
|
|
|
@ -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 _
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue