From c26ee6e87a8ccdfe578c8f10b236ddd522754ec9 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Mon, 23 Jan 2017 16:31:17 +0800 Subject: [PATCH] remove unused coding=utf-8 --- .flake8 | 1 + account/serializers.py | 1 - contest/models.py | 3 --- group/models.py | 3 --- oj/custom_settings.example.py | 2 -- oj/db_router.py | 3 --- oj/urls.py | 1 - utils/__init__.py | 1 - utils/captcha/views.py | 1 - utils/management/__init__.py | 1 - utils/management/commands/__init__.py | 1 - 11 files changed, 1 insertion(+), 17 deletions(-) diff --git a/.flake8 b/.flake8 index 73f40c5c..2e0788e4 100644 --- a/.flake8 +++ b/.flake8 @@ -5,3 +5,4 @@ exclude = *settings.py max-line-length = 180 inline-quotes = " +no-accept-encodings = True diff --git a/account/serializers.py b/account/serializers.py index ad2197c4..77c9cdc1 100644 --- a/account/serializers.py +++ b/account/serializers.py @@ -1,4 +1,3 @@ -# coding=utf-8 from utils.api import serializers, DateTimeTZField from .models import User, AdminType diff --git a/contest/models.py b/contest/models.py index b61bad0a..e6532b0b 100644 --- a/contest/models.py +++ b/contest/models.py @@ -1,6 +1,3 @@ -# coding=utf-8 -from __future__ import unicode_literals - from django.db import models from django.utils.timezone import now from group.models import Group diff --git a/group/models.py b/group/models.py index 0e61de5d..c3515bb9 100644 --- a/group/models.py +++ b/group/models.py @@ -1,6 +1,3 @@ -# coding=utf-8 -from __future__ import unicode_literals - from django.db import models diff --git a/oj/custom_settings.example.py b/oj/custom_settings.example.py index 5def48ed..778f781f 100644 --- a/oj/custom_settings.example.py +++ b/oj/custom_settings.example.py @@ -1,4 +1,2 @@ -# coding=utf-8 - # please set your own SECRET_KEY to a long random string # SECRET_KEY = "" diff --git a/oj/db_router.py b/oj/db_router.py index c264ba4f..823d7843 100644 --- a/oj/db_router.py +++ b/oj/db_router.py @@ -1,6 +1,3 @@ -# coding=utf-8 - - class DBRouter(object): def db_for_read(self, model, **hints): if model._meta.app_label == "submission": diff --git a/oj/urls.py b/oj/urls.py index dc3930ef..1e132799 100644 --- a/oj/urls.py +++ b/oj/urls.py @@ -1,4 +1,3 @@ -# coding=utf-8 from django.conf.urls import include, url urlpatterns = [ diff --git a/utils/__init__.py b/utils/__init__.py index 9bad5790..e69de29b 100644 --- a/utils/__init__.py +++ b/utils/__init__.py @@ -1 +0,0 @@ -# coding=utf-8 diff --git a/utils/captcha/views.py b/utils/captcha/views.py index 85629127..ba420593 100644 --- a/utils/captcha/views.py +++ b/utils/captcha/views.py @@ -1,4 +1,3 @@ -# coding=utf-8 from django.http import HttpResponse from utils.captcha import Captcha diff --git a/utils/management/__init__.py b/utils/management/__init__.py index 9bad5790..e69de29b 100644 --- a/utils/management/__init__.py +++ b/utils/management/__init__.py @@ -1 +0,0 @@ -# coding=utf-8 diff --git a/utils/management/commands/__init__.py b/utils/management/commands/__init__.py index 9bad5790..e69de29b 100644 --- a/utils/management/commands/__init__.py +++ b/utils/management/commands/__init__.py @@ -1 +0,0 @@ -# coding=utf-8