From patchwork Sun Jun 24 19:55:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Finucane X-Patchwork-Id: 933976 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41DNQx6W6bz9ry1 for ; Mon, 25 Jun 2018 05:58:33 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=that.guru Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="Hw6EZ1UB"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41DNQx4yQXzF15H for ; Mon, 25 Jun 2018 05:58:33 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=that.guru Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="Hw6EZ1UB"; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=that.guru (client-ip=23.83.214.30; helo=caracal.maple.relay.mailchannels.net; envelope-from=stephen@that.guru; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=that.guru Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="Hw6EZ1UB"; dkim-atps=neutral Received: from caracal.maple.relay.mailchannels.net (caracal.maple.relay.mailchannels.net [23.83.214.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41DNNJ4ZXVzF164 for ; Mon, 25 Jun 2018 05:56:16 +1000 (AEST) X-Sender-Id: 5xi41l16bi|x-authuser|stephen@that.guru Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B0510681B20 for ; Sun, 24 Jun 2018 19:56:13 +0000 (UTC) Received: from one.mxroute.com (unknown [100.96.29.38]) (Authenticated sender: 5xi41l16bi) by relay.mailchannels.net (Postfix) with ESMTPA id 668DC6819BC for ; Sun, 24 Jun 2018 19:56:13 +0000 (UTC) X-Sender-Id: 5xi41l16bi|x-authuser|stephen@that.guru Received: from one.mxroute.com (one-outgoing.mxroute.com [23.92.70.115]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.15.3); Sun, 24 Jun 2018 19:56:13 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: 5xi41l16bi|x-authuser|stephen@that.guru X-MailChannels-Auth-Id: 5xi41l16bi X-Occur-Hysterical: 1d74b6b77e140ef1_1529870173589_84837690 X-MC-Loop-Signature: 1529870173589:1713249589 X-MC-Ingress-Time: 1529870173589 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=that.guru; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bsUWO0CXKpYWwas9huuCgnqcw5ZUpJuRnMiAnN34iDY=; b=Hw6EZ1UBqdHwfiYwb0Hcc07CcI LzGo95is9QOL854YSWq54mkNALsFgJfI75T5AzXGxLP+Pbm2KUK0hF9gGFCcyPCT/MdkfhQaYn9tm 5RCTRYi/uNVKQsy/W6fzvtSrCj4QxK9y62p0c9vBz0q50GIZvnAfnDkh3LMxy/z/k8yTzfo67Xo8+ hljssvrblcM3Ay8G6RzJ6frKbtrDa62khBrk/1m97Qw1iO7eqY0J7HQB6cSClfgFK3B23u6N8GPQZ DK6FowRKgxLszSMuYh7e7GvhWWC/PxVnDbWbmVcfeTcXe9wry+5NJ6JVzA5gTBMbWpSQ8QBKCT18y /qNGl3rA==; From: Stephen Finucane To: patchwork@lists.ozlabs.org Subject: [PATCH 09/11] Resolve Python 3.6 warnings Date: Sun, 24 Jun 2018 20:55:55 +0100 Message-Id: <20180624195557.19909-9-stephen@that.guru> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180624195557.19909-1-stephen@that.guru> References: <20180624195557.19909-1-stephen@that.guru> X-AuthUser: stephen@that.guru X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" DeprecationWarning: invalid escape sequence \d Signed-off-by: Stephen Finucane Reviewed-by: Daniel Axtens --- patchwork/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchwork/parser.py b/patchwork/parser.py index a40f9314..2a31c140 100644 --- a/patchwork/parser.py +++ b/patchwork/parser.py @@ -486,7 +486,7 @@ def parse_version(subject, subject_prefixes): Returns: version if found, else 1 """ - regex = re.compile('^[vV](\d+)$') + regex = re.compile(r'^[vV](\d+)$') m = _find_matching_prefix(subject_prefixes, regex) if m: return int(m.group(1))