From nobody Tue Feb 10 06:27:53 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=1558773601; cv=none; d=zoho.com; s=zohoarc; b=RJ7TycYp+xcIPTHdw2RbWLIX9bjL/46CuglF61PZFoBLrNWYv53WHZa/+iYS0D8lhSwkN5qSU7cRImRwBCWCydKy6tZK2G0I9Ha5lCvQua57AD4lMYAJgqr2pNUpr3bEEWvtV9TNtu7CklWjwqAfOC2oIHZoM2O8VDDLn7rBpRA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1558773601; 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=bMpd3UGUErs0SVpKWgnpioJOrWRpLVYfrYS5hfkO858=; b=g/hsxywURR19miJJJkERako8aaeHdXv4FOj/+OXtQURUDmB9mtaNlw3GRgR1LLOOqSIALoJc6Ad4XoRYBAEALh+BNO9hmGSJa8J2xX++HE0zDI8kuhwm/O5MIlKH6boBxh65nyO0Nid5v/XeBttGiHaqY+xzOuxCz3oaci4JWoo= 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 1558773601066213.8419996859418; Sat, 25 May 2019 01:40:01 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 24F8C308FC47; Sat, 25 May 2019 08:39:54 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1B2DE5D9D3; Sat, 25 May 2019 08:39:52 +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 C4CAB4EA6C; Sat, 25 May 2019 08:39:52 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4P8dqrp022573 for ; Sat, 25 May 2019 04:39:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id 057C9579A9; 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 F317760610 for ; Sat, 25 May 2019 08:39:49 +0000 (UTC) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) (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 4E9C659467 for ; Sat, 25 May 2019 08:39:33 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id d18so12119983wrs.5 for ; Sat, 25 May 2019 01:39:33 -0700 (PDT) Received: from donizetti.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id u15sm9569001wru.16.2019.05.25.01.39.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 May 2019 01:39:31 -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=5tgYxC24k1F03cJamcFu6CL0u1FQ59V/mQPNEqDmdvU=; b=TsPNfAoAphklG8qxvT9gt5e7mQRbAf6alwAsbGjPpr6AI1B2S+wfB11l9CZstB0nWW G6QCej82/6zf7u76wr+heSIMVc6NfnL2yPJkP+wnespvLy4PgRY9yhzCVz26cdZCd+4M yv6c9rCQAlih0eBdgaGGuTzxhk59I5uVkpTK06X9H09DmjM9/7qlz3zXDBIpwr0ii0kH IxbzhCtTp0epBucF3ISzI9+7zK6I08heuvUnw1aPc003CpZ9duHn8P9d249+dYVOgGcF HIYyl5kLsGiMFwJ8csOUWAPWCBWAXtBq34Dw5mSnJ3UwCRWPzjhVTQof5009DXVcN0bR 5TFw== 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=5tgYxC24k1F03cJamcFu6CL0u1FQ59V/mQPNEqDmdvU=; b=lZOigTPsLPLlpfHpCHv/Y5d4Ke7LTy0CFN9wXoKufpthpQCbIdwNIRvu5nCWJBqa1Z cU1Ilf6h5MzOII2GDSC2l4tjm3KQbwR/sUEHc2gWYCEhwo2NALqEWw7ZUj9J1TCBrerS pKycywgOnwbBb60ucuJTNGT699Y7/l6RNgxS/9eT8znHujQ5riI05nngm4OULVXqXhK0 Lvk2WK7LImfQuEZ7nZfQqOFlIatucvzC1MSzkp5FEB7wQ238DlicdY7+bh+u4fU5g5SD UBRBbWI+oHDPSO1Knm42XEjrqfoe8OAQrhx22x9A3KB4KcchSgtA6Ru0x36gXKROML/J ZoEQ== X-Gm-Message-State: APjAAAXwQWkHvtXmqgrmuDX5Ei+xbB5g/OuWAt6LjM25DvhBSlPoOHsx nG1+S4bb7TU6ewgJXvCelxPi6Q8I X-Google-Smtp-Source: APXvYqxOwbf4U6ETafcCRv/fKC5pyjnybF+SSNKM0NufCLImv4HqeRDIPCCG7e0Bxpn0799c1AbkRg== X-Received: by 2002:a5d:40ca:: with SMTP id b10mr14945507wrq.10.1558773571650; Sat, 25 May 2019 01:39:31 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Sat, 25 May 2019 10:39:26 +0200 Message-Id: <20190525083927.8277-4-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:33 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Sat, 25 May 2019 08:39:33 +0000 (UTC) for IP:'209.85.221.65' DOMAIN:'mail-wr1-f65.google.com' HELO:'mail-wr1-f65.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.192 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE) 209.85.221.65 mail-wr1-f65.google.com 209.85.221.65 mail-wr1-f65.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.13 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 3/4] remove dead code 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.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Sat, 25 May 2019 08:39:54 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Based on a patch generated by autoflake. --- api/migrations/0025_populate_project_maintainers.py | 1 - api/migrations/0028_populate_git_results.py | 3 --- mbox.py | 1 - mods/testing.py | 1 - 4 files changed, 6 deletions(-) diff --git a/api/migrations/0025_populate_project_maintainers.py b/api/migr= ations/0025_populate_project_maintainers.py index 3f9f3aa..0d83191 100644 --- a/api/migrations/0025_populate_project_maintainers.py +++ b/api/migrations/0025_populate_project_maintainers.py @@ -27,7 +27,6 @@ def maintainers_to_property(apps, schema_editor): # version than this migration expects. We use the historical version. Project =3D apps.get_model('api', 'Project') ProjectProperty =3D apps.get_model('api', 'ProjectProperty') - User =3D apps.get_model('auth', 'User') projects =3D Project.objects. \ annotate(maintainer_count=3DCount('maintainers')). \ filter(maintainer_count__gt=3D0) diff --git a/api/migrations/0028_populate_git_results.py b/api/migrations/0= 028_populate_git_results.py index dd6f9bc..ef7a593 100644 --- a/api/migrations/0028_populate_git_results.py +++ b/api/migrations/0028_populate_git_results.py @@ -49,8 +49,6 @@ def result_from_properties(apps, schema_editor): data['base'] =3D git_base r.status =3D api.models.Result.SUCCESS r.data =3D data - else: - status =3D api.models.Result.PENDING r.last_update =3D datetime.datetime.utcnow() r.save() messages =3D Message.objects.filter(properties__name=3D'git.apply-log'= , properties__blob=3DTrue) @@ -64,7 +62,6 @@ def result_to_properties(apps, schema_editor): Message =3D apps.get_model('api', 'Message') MessageProperty =3D apps.get_model('api', 'MessageProperty') MessageResult =3D apps.get_model('api', 'MessageResult') - LogEntry =3D apps.get_model('api', 'LogEntry') messages =3D Message.objects.filter(results__name=3D'git') for m in messages: r =3D MessageResult.objects.get(name=3D'git', message=3Dm) diff --git a/mbox.py b/mbox.py index 16b3fc9..c66dd95 100644 --- a/mbox.py +++ b/mbox.py @@ -72,7 +72,6 @@ class MboxMessage(object): only to prepend Re:, return an empty str strip_re: drop leading "Re:" prefixes""" def do_strip_tags(t): - diff_stats =3D t.strip() while t.startswith("[") and "]" in t: t =3D t[t.find("]") + 1:].strip() return t diff --git a/mods/testing.py b/mods/testing.py index cece418..ffd234f 100644 --- a/mods/testing.py +++ b/mods/testing.py @@ -302,7 +302,6 @@ class TestingModule(PatchewModule): html_log_url=3Dhtml_log_url, is_timeout=3Dis_timeout) =20 def get_tests(self, obj): - ret =3D {} if isinstance(obj, Message): obj =3D obj.project return self.get_project_config(obj).get("tests", {}) --=20 2.21.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel