From nobody Mon Feb 9 20:59:58 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1558773602; cv=none; d=zoho.com; s=zohoarc; b=dvHv8rahD3MgjDxefDPi0qB+G+7iLT+wLfM4A2FtWOB+iiZ5dvrxkphHUxyIzHn7QN3t8AHlShcQRGYqaRcuMEBuBQXyTvhp8/bNl4wkRlQUJ3KLTzd7K/wpyYjqFYU5RFNCWVociOEOJmm4di35sQBFRqrFJHayb5OU+yA88JI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558773602; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=wpyrYpydN15UU4seSqUb/4snZTrZZ5FZQgmWS7YbVYE=; b=CFrFa5r5RKtsjYz2tjRbSzPaUuRsNDELza89Lm/k4LKN4QoAftunPg/HFZQylRSznFzn7oAGDpNPLjaryBphGYG9KyvqhBgEjAg3gUStMAfLWvDY4Jj+y3oKs/XU7scKTDoI75YykAnFkT1ybpgvT6c5P4bvVXIw2SAJyf1rLsA= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 155877360249163.56671206176884; Sat, 25 May 2019 01:40:02 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4EBEF308626C; Sat, 25 May 2019 08:39:56 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 434C52B8D6; Sat, 25 May 2019 08:39:56 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3497A1806B13; Sat, 25 May 2019 08:39:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4P8dq3X022582 for ; Sat, 25 May 2019 04:39:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id 782736013D; Sat, 25 May 2019 08:39:52 +0000 (UTC) Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 72FC261359 for ; Sat, 25 May 2019 08:39:50 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 69A995AFE9 for ; Sat, 25 May 2019 08:39:32 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id l2so12112645wrb.9 for ; Sat, 25 May 2019 01:39:32 -0700 (PDT) Received: from donizetti.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id u15sm9569001wru.16.2019.05.25.01.39.30 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 May 2019 01:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4tDzQMHPAkhx8vxqek5sWTgLULl4oMxRUeenyZeQwow=; b=rmJ7NSsRt4be8MpLuw41rlOexwlpBqYjpzrgPK2Pe7/0ZtjCbZpvxPaA0PLPCCox61 8Pnx060yVnIeqQac/FmJi0uCpX8gjlUfWT6J9x3BXPxhnIdeAy2sqNiHzviggX1YLgue 3RYIbKw9fZ5+zDiHb70UGj8a6/tFo+GPkD0Zl3dqqgp7t9A8iAtwXH3hZMqY2iB/NrKh GINeCIWkQw5NatF9IYAA+x7HNpghSRSsHVfSQZYhsXhcjm3E+4Jz8WAQJ7zwGS1eKu0u 0/yXnXGxolib8OBIAzVaS3fJs43Q1fFN/kj2ZNbisndyGTwuwBgHELuK+TNtcLUpWbo9 Dh3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=4tDzQMHPAkhx8vxqek5sWTgLULl4oMxRUeenyZeQwow=; b=tBPu4wFsXyjNxvERLF2robq7vNLsUd9/FFX6XDMJxWyHbf/bBRPDLpNoBxj4H7Jg/n vPMl7MFrka4SK/U/Q4SCIKSrPYmcmkVR+wp8+dmgXNN5EQZfMAkzFWwFAbBJLLkvKQjZ PQAb+oYnSRtnIUiWyeZivXPy0uIi8sZkOdHq8RJGyCLPtra/FCCHJg9msNiTDbmotJzA u0mZCFdGNzEiwZYkTBiZjyO+mjzOF++Q3VW9gznsXVFHg+wuZXznRVZwUl+t6cg9XT9k tqfdP+rOfXmIn1sA4GW1GfDEoQGYGqlR/aZCDVlhFlTZaXZLpk2VJv5Ro6jd4ZRnqWKT Ji6A== X-Gm-Message-State: APjAAAVELGlxoKYzD/UpFSJMonD6paFt0FuKbe9POG5j7oxso7Ch6yqk VLT5Bq20LYBQ8mTJNpPxicOP15O1 X-Google-Smtp-Source: APXvYqz3SQ/nDz2nGdzOzMyJLtiF/64NIqEzbNwULVyNnppWE6I4rEfCFfmNO3MBmQbOANH2UuiDyQ== X-Received: by 2002:a5d:49c1:: with SMTP id t1mr66661358wrs.247.1558773570799; Sat, 25 May 2019 01:39:30 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Sat, 25 May 2019 10:39:25 +0200 Message-Id: <20190525083927.8277-3-pbonzini@redhat.com> In-Reply-To: <20190525083927.8277-1-pbonzini@redhat.com> References: <20190525083927.8277-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Sat, 25 May 2019 08:39:32 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Sat, 25 May 2019 08:39:32 +0000 (UTC) for IP:'209.85.221.68' DOMAIN:'mail-wr1-f68.google.com' HELO:'mail-wr1-f68.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.206 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.221.68 mail-wr1-f68.google.com 209.85.221.68 mail-wr1-f68.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.39 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 2/4] remove unused imports X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Sat, 25 May 2019 08:39:56 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Patch generated by autoflake. Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- api/migrations/0028_populate_git_results.py | 2 -- api/migrations/0029_populate_testing_results.py | 2 -- api/migrations/0030_deblob_properties.py | 3 --- api/migrations/0036_populate_message_tags.py | 2 -- api/migrations/0038_populate_default_groups.py | 2 -- api/migrations/0041_postgres_fts.py | 3 +-- api/migrations/0042_review_to_queue.py | 3 +-- api/migrations/0047_populate_project_config.py | 1 - api/migrations/0049_populate_message_flags.py | 1 - api/migrations/0051_populate_property_fields.py | 2 -- mods/git.py | 7 ++----- tests/test_import.py | 1 - www/views.py | 1 - 13 files changed, 4 insertions(+), 26 deletions(-) diff --git a/api/migrations/0028_populate_git_results.py b/api/migrations/0= 028_populate_git_results.py index bc17e08..dd6f9bc 100644 --- a/api/migrations/0028_populate_git_results.py +++ b/api/migrations/0028_populate_git_results.py @@ -1,9 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals =20 -from django.conf import settings from django.db import migrations -from django.db.models import Count from api.migrations import get_property, set_property, delete_property_blob =20 import datetime diff --git a/api/migrations/0029_populate_testing_results.py b/api/migratio= ns/0029_populate_testing_results.py index 0607936..0002de2 100644 --- a/api/migrations/0029_populate_testing_results.py +++ b/api/migrations/0029_populate_testing_results.py @@ -1,9 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals =20 -from django.conf import settings from django.db import migrations -from django.db.models import Count from api.migrations import (get_property, get_property_raw, load_property, set_property, delete_property_blob) =20 diff --git a/api/migrations/0030_deblob_properties.py b/api/migrations/0030= _deblob_properties.py index 801f7a2..2750058 100644 --- a/api/migrations/0030_deblob_properties.py +++ b/api/migrations/0030_deblob_properties.py @@ -1,11 +1,8 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals =20 -from django.conf import settings from django.db import migrations -from django.db.models import Count =20 -import json from api import blobs =20 def deblob_properties(apps, schema_editor): diff --git a/api/migrations/0036_populate_message_tags.py b/api/migrations/= 0036_populate_message_tags.py index e9f2a70..681d70c 100644 --- a/api/migrations/0036_populate_message_tags.py +++ b/api/migrations/0036_populate_message_tags.py @@ -2,8 +2,6 @@ from __future__ import unicode_literals =20 from django.db import migrations -from django.db.models import Count -import json =20 =20 def tags_from_property(apps, schema_editor): diff --git a/api/migrations/0038_populate_default_groups.py b/api/migration= s/0038_populate_default_groups.py index b805da7..5fee0a3 100644 --- a/api/migrations/0038_populate_default_groups.py +++ b/api/migrations/0038_populate_default_groups.py @@ -2,8 +2,6 @@ from __future__ import unicode_literals =20 from django.db import migrations -from django.db.models import Count -import json =20 =20 def populate_default_groups(apps, schema_editor): diff --git a/api/migrations/0041_postgres_fts.py b/api/migrations/0041_post= gres_fts.py index d3b2fa8..9424b9e 100644 --- a/api/migrations/0041_postgres_fts.py +++ b/api/migrations/0041_postgres_fts.py @@ -2,8 +2,7 @@ # Generated by Django 1.11.16 on 2018-11-07 15:28 from __future__ import unicode_literals =20 -from django.db import migrations, models -import django.db.models.deletion +from django.db import migrations from django.contrib.postgres.operations import TrigramExtension =20 from api.migrations import PostgresOnlyMigration diff --git a/api/migrations/0042_review_to_queue.py b/api/migrations/0042_r= eview_to_queue.py index 8e1a33d..d9f193f 100644 --- a/api/migrations/0042_review_to_queue.py +++ b/api/migrations/0042_review_to_queue.py @@ -3,8 +3,7 @@ from __future__ import unicode_literals =20 from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion +from django.db import migrations =20 =20 class Migration(migrations.Migration): diff --git a/api/migrations/0047_populate_project_config.py b/api/migration= s/0047_populate_project_config.py index 2a86e1f..ee2f264 100644 --- a/api/migrations/0047_populate_project_config.py +++ b/api/migrations/0047_populate_project_config.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals =20 -from django.conf import settings from django.db import migrations from django.db.models import Q =20 diff --git a/api/migrations/0049_populate_message_flags.py b/api/migrations= /0049_populate_message_flags.py index 88e9a6b..d5302cf 100644 --- a/api/migrations/0049_populate_message_flags.py +++ b/api/migrations/0049_populate_message_flags.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals =20 -from django.conf import settings from django.db import migrations =20 def property_to_flags(apps, schema_editor): diff --git a/api/migrations/0051_populate_property_fields.py b/api/migratio= ns/0051_populate_property_fields.py index 2f36ceb..5bf07c4 100644 --- a/api/migrations/0051_populate_property_fields.py +++ b/api/migrations/0051_populate_property_fields.py @@ -1,9 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals =20 -from django.conf import settings from django.db import migrations, transaction -from django.db.models import Q =20 def do_properties_to_field(obj, propset): properties =3D {} diff --git a/mods/git.py b/mods/git.py index 753da7e..14d54b6 100644 --- a/mods/git.py +++ b/mods/git.py @@ -10,23 +10,20 @@ =20 import os import subprocess -import hashlib -import json import rest_framework from django.conf.urls import url from django.http import Http404, HttpResponseRedirect from django.urls import reverse from django.core.exceptions import PermissionDenied from django.utils.html import format_html -from django.db.models import Q from mod import PatchewModule -from event import declare_event, register_handler, emit_event +from event import declare_event, register_handler from api.models import (Message, Project, Result) from api.rest import PluginMethodField, SeriesSerializer, reverse_detail from api.views import APILoginRequiredView, prepare_series from patchew.logviewer import LogView import schema -from rest_framework import generics, mixins, serializers +from rest_framework import generics, serializers from rest_framework.fields import CharField, SerializerMethodField =20 _instance =3D None diff --git a/tests/test_import.py b/tests/test_import.py index 466b45f..84bc70b 100755 --- a/tests/test_import.py +++ b/tests/test_import.py @@ -8,7 +8,6 @@ # This work is licensed under the MIT License. Please see the LICENSE fil= e or # http://opensource.org/licenses/MIT. =20 -import json =20 from api.models import Message, Project =20 diff --git a/www/views.py b/www/views.py index 4436c7b..ccbbc6f 100644 --- a/www/views.py +++ b/www/views.py @@ -16,7 +16,6 @@ from django.urls import reverse from django.utils.html import format_html from django.conf import settings import api -import re from mod import dispatch_module_hook import subprocess =20 --=20 2.21.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel