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 1FF15138A1A for ; Sun, 8 Feb 2015 04:20:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2FFBDE0C31; Sun, 8 Feb 2015 04:20:15 +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 B0CDFE0C31 for ; Sun, 8 Feb 2015 04:20:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 323C734016B for ; Sun, 8 Feb 2015 04:20:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B17FC114BD for ; Sun, 8 Feb 2015 04:20:11 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1423369160.6b22ef1131bce5bf63a4a086fcd05449c87a43b2.dolsen@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/repoconfmanager.py X-VCS-Directories: layman/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 6b22ef1131bce5bf63a4a086fcd05449c87a43b2 X-VCS-Branch: master Date: Sun, 8 Feb 2015 04:20:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6041e8b1-4fc2-4d26-bb1a-d4509b495ec5 X-Archives-Hash: 18302093d98543c22c6fd084037f7f9e commit: 6b22ef1131bce5bf63a4a086fcd05449c87a43b2 Author: Brian Dolbec gentoo org> AuthorDate: Sun Feb 8 04:19:20 2015 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Sun Feb 8 04:19:20 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=6b22ef11 repoconfmanager.py: Pyflakes and whitespace cleanup --- layman/repoconfmanager.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/layman/repoconfmanager.py b/layman/repoconfmanager.py index 8a65b88..e1143ea 100644 --- a/layman/repoconfmanager.py +++ b/layman/repoconfmanager.py @@ -16,10 +16,9 @@ # import os -import re import sys -from layman.module import Modules, InvalidModuleName +from layman.module import Modules if sys.hexversion >= 0x30200f0: STR = str @@ -104,7 +103,7 @@ class RepoConfManager: conf_ok = conf.disable(overlay) return conf_ok return True - + def enable(self, overlay): ''' @@ -123,11 +122,11 @@ class RepoConfManager: return conf_ok return True - + def update(self, overlay): ''' Updates the source URL for the specified config type(s). - + @param overlay: layman.overlay.Overlay instance. @return boolean: represents success or failure. '''