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 CEAC913888F for ; Tue, 6 Oct 2015 03:48:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FA07E07A3; Tue, 6 Oct 2015 03:48:00 +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 C28C2E07A3 for ; Tue, 6 Oct 2015 03:47:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B710C340634 for ; Tue, 6 Oct 2015 03:47:57 +0000 (UTC) From: Mike Frysinger To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH] lint: fix anomalous-backslash-in-string Date: Mon, 5 Oct 2015 23:47:55 -0400 Message-Id: <1444103275-14433-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.5.2 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 X-Archives-Salt: d90bd36e-293f-495f-8c13-5df2f9a6e047 X-Archives-Hash: 3e48c128868e4a94194a484c70b63af1 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): -- 2.5.2