From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6F4CB13888F for ; Tue, 6 Oct 2015 06:23:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A1CBE07D6; Tue, 6 Oct 2015 06:23:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 27E3EE07D6 for ; Tue, 6 Oct 2015 06:23:51 +0000 (UTC) Received: from professor-x (S010634bdfa9ecf80.vc.shawcable.net [96.49.31.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dolsen) by smtp.gentoo.org (Postfix) with ESMTPSA id 09DC1340831 for ; Tue, 6 Oct 2015 06:23:49 +0000 (UTC) Date: Mon, 5 Oct 2015 23:23:01 -0700 From: Brian Dolbec To: gentoo-catalyst@lists.gentoo.org Subject: Re: [gentoo-catalyst] [PATCH] lint: fix anomalous-backslash-in-string Message-ID: <20151005232301.745c2dea.dolsen@gentoo.org> In-Reply-To: <1444103275-14433-1-git-send-email-vapier@gentoo.org> References: <1444103275-14433-1-git-send-email-vapier@gentoo.org> Organization: Gentoo Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 231da984-4472-44cd-9da5-554519516cd4 X-Archives-Hash: a8bdb37fe99876cc4559114059e02648 On Mon, 5 Oct 2015 23:47:55 -0400 Mike Frysinger wrote: > All strings using escape sequences should be raw strings. > This way we don't end up with accidental misbehavior. > --- > catalyst/config.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/catalyst/config.py b/catalyst/config.py > index 67d4e77..5d74dce 100644 > --- a/catalyst/config.py > +++ b/catalyst/config.py > @@ -42,7 +42,7 @@ class ParserBase: > values = {} > cur_array = [] > > - trailing_comment=re.compile('\s*#.*$') > + trailing_comment=re.compile(r'\s*#.*$') > #white_space=re.compile('\s+') > > for x, myline in enumerate(self.lines): good :) -- Brian Dolbec