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 EE7F01389E2 for ; Thu, 4 Dec 2014 20:16:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E138DE0920; Thu, 4 Dec 2014 20:16: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 A7108E0900 for ; Thu, 4 Dec 2014 20:16: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 4CBB434059D for ; Thu, 4 Dec 2014 20:16:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9CC3FB942 for ; Thu, 4 Dec 2014 20:16:10 +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: <1417722994.3ec9ab684026128e116bf028fa1b26df5daa0d26.dol-sen@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/emaint/modules/sync/, pym/portage/sync/modules/websync/, ... X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/emaint/modules/sync/__init__.py pym/portage/sync/modules/cvs/__init__.py pym/portage/sync/modules/git/__init__.py pym/portage/sync/modules/rsync/__init__.py pym/portage/sync/modules/svn/__init__.py pym/portage/sync/modules/websync/__init__.py X-VCS-Directories: pym/portage/sync/modules/svn/ pym/portage/sync/modules/cvs/ pym/portage/sync/modules/git/ pym/portage/sync/modules/rsync/ pym/portage/sync/modules/websync/ pym/portage/emaint/modules/sync/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 3ec9ab684026128e116bf028fa1b26df5daa0d26 X-VCS-Branch: master Date: Thu, 4 Dec 2014 20:16:10 +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: 74ab8718-8bce-44ae-8a50-3f8435967c6c X-Archives-Hash: 06302f0a14164ecf44eaefd787d323b4 commit: 3ec9ab684026128e116bf028fa1b26df5daa0d26 Author: Brian Dolbec gentoo org> AuthorDate: Sat Sep 27 02:00:19 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Thu Dec 4 19:56:34 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=3ec9ab68 Sync: Update __init__.py docstrings to use a variable Same as for the emaint modules, level 2 python optimization removes docstrings. --- pym/portage/emaint/modules/sync/__init__.py | 9 ++++----- pym/portage/sync/modules/cvs/__init__.py | 11 +++++------ pym/portage/sync/modules/git/__init__.py | 11 +++++------ pym/portage/sync/modules/rsync/__init__.py | 11 +++++------ pym/portage/sync/modules/svn/__init__.py | 11 +++++------ pym/portage/sync/modules/websync/__init__.py | 11 ++++++----- 6 files changed, 30 insertions(+), 34 deletions(-) diff --git a/pym/portage/emaint/modules/sync/__init__.py b/pym/portage/emaint/modules/sync/__init__.py index 4070200..32469b5 100644 --- a/pym/portage/emaint/modules/sync/__init__.py +++ b/pym/portage/emaint/modules/sync/__init__.py @@ -1,18 +1,17 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""Check repos.conf settings and sync repositories. -""" - +doc = """Check repos.conf settings and sync repositories.""" +__doc__ = doc[:] module_spec = { 'name': 'sync', - 'description': __doc__, + 'description': doc, 'provides':{ 'sync-module': { 'name': "sync", 'class': "SyncRepos", - 'description': __doc__, + 'description': doc, 'functions': ['allrepos', 'auto', 'repo'], 'func_desc': { 'repo': { diff --git a/pym/portage/sync/modules/cvs/__init__.py b/pym/portage/sync/modules/cvs/__init__.py index fd3b12a..abf547f 100644 --- a/pym/portage/sync/modules/cvs/__init__.py +++ b/pym/portage/sync/modules/cvs/__init__.py @@ -1,10 +1,9 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""CVS plug-in module for portage. -Performs a cvs up on repositories -""" - +doc = """CVS plug-in module for portage. +Performs a cvs up on repositories.""" +__doc__ = doc[:] from portage.localization import _ from portage.sync.config_checks import CheckSyncConfig @@ -27,12 +26,12 @@ class CheckCVSConfig(CheckSyncConfig): module_spec = { 'name': 'cvs', - 'description': __doc__, + 'description': doc, 'provides':{ 'cvs-module': { 'name': "cvs", 'class': "CVSSync", - 'description': __doc__, + 'description': doc, 'functions': ['sync', 'new', 'exists'], 'func_desc': { 'sync': 'Performs a cvs up on the repository', diff --git a/pym/portage/sync/modules/git/__init__.py b/pym/portage/sync/modules/git/__init__.py index 304142e..833b389 100644 --- a/pym/portage/sync/modules/git/__init__.py +++ b/pym/portage/sync/modules/git/__init__.py @@ -1,22 +1,21 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""Git plug-in module for portage. -Performs a git pull on repositories -""" - +doc = """Git plug-in module for portage. +Performs a git pull on repositories.""" +__doc__ = doc[:] from portage.sync.config_checks import CheckSyncConfig module_spec = { 'name': 'git', - 'description': __doc__, + 'description': doc, 'provides':{ 'git-module': { 'name': "git", 'class': "GitSync", - 'description': __doc__, + 'description': doc, 'functions': ['sync', 'new', 'exists'], 'func_desc': { 'sync': 'Performs a git pull on the repository', diff --git a/pym/portage/sync/modules/rsync/__init__.py b/pym/portage/sync/modules/rsync/__init__.py index 9e19d85..9adc4c8 100644 --- a/pym/portage/sync/modules/rsync/__init__.py +++ b/pym/portage/sync/modules/rsync/__init__.py @@ -1,22 +1,21 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""Rsync plug-in module for portage. - Performs rsync transfers on repositories -""" - +doc = """Rsync plug-in module for portage. + Performs rsync transfers on repositories.""" +__doc__ = doc[:] from portage.sync.config_checks import CheckSyncConfig module_spec = { 'name': 'rsync', - 'description': __doc__, + 'description': doc, 'provides':{ 'rsync-module': { 'name': "rsync", 'class': "RsyncSync", - 'description': __doc__, + 'description': doc, 'functions': ['sync', 'new', 'exists'], 'func_desc': { 'sync': 'Performs rsync transfers on the repository', diff --git a/pym/portage/sync/modules/svn/__init__.py b/pym/portage/sync/modules/svn/__init__.py index 1fda55a..59ab950 100644 --- a/pym/portage/sync/modules/svn/__init__.py +++ b/pym/portage/sync/modules/svn/__init__.py @@ -1,10 +1,9 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""SVN plug-in module for portage. -Performs a svn up on repositories -""" - +doc = """SVN plug-in module for portage. +Performs a svn up on repositories.""" +__doc__ = doc[:] from portage.localization import _ from portage.sync.config_checks import CheckSyncConfig @@ -13,12 +12,12 @@ from portage.util import writemsg_level module_spec = { 'name': 'svn', - 'description': __doc__, + 'description': doc, 'provides':{ 'svn-module': { 'name': "svn", 'class': "SVNSync", - 'description': __doc__, + 'description': doc, 'functions': ['sync', 'new', 'exists'], 'func_desc': { 'sync': 'Performs a svn up on the repository', diff --git a/pym/portage/sync/modules/websync/__init__.py b/pym/portage/sync/modules/websync/__init__.py index e93ee10..0404610 100644 --- a/pym/portage/sync/modules/websync/__init__.py +++ b/pym/portage/sync/modules/websync/__init__.py @@ -1,10 +1,11 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""WebRSync plug-in module for portage. +doc = """WebRSync plug-in module for portage. Performs a http download of a portage snapshot, verifies and -unpacks it to the repo location. -""" +unpacks it to the repo location.""" +__doc__ = doc[:] + import os @@ -27,12 +28,12 @@ except KeyError: module_spec = { 'name': 'webrsync', - 'description': __doc__, + 'description': doc, 'provides':{ 'websync-module': { 'name': "websync", 'class': config_class, - 'description': __doc__, + 'description': doc, 'functions': ['sync', 'new', 'exists'], 'func_desc': { 'sync': 'Performs an archived http download of the ' + 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 C5E281389E2 for ; Thu, 4 Dec 2014 20:04:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7A25E08B8; Thu, 4 Dec 2014 20:04:35 +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 6153AE087C for ; Thu, 4 Dec 2014 20:04:35 +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 5343F340598 for ; Thu, 4 Dec 2014 20:04:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4008AB93F for ; Thu, 4 Dec 2014 20:04:31 +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: <1417722994.3ec9ab684026128e116bf028fa1b26df5daa0d26.dol-sen@gentoo> Subject: [gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/sync/modules/rsync/, pym/portage/emaint/modules/sync/, ... X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/emaint/modules/sync/__init__.py pym/portage/sync/modules/cvs/__init__.py pym/portage/sync/modules/git/__init__.py pym/portage/sync/modules/rsync/__init__.py pym/portage/sync/modules/svn/__init__.py pym/portage/sync/modules/websync/__init__.py X-VCS-Directories: pym/portage/sync/modules/cvs/ pym/portage/emaint/modules/sync/ pym/portage/sync/modules/rsync/ pym/portage/sync/modules/git/ pym/portage/sync/modules/websync/ pym/portage/sync/modules/svn/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 3ec9ab684026128e116bf028fa1b26df5daa0d26 X-VCS-Branch: plugin-sync Date: Thu, 4 Dec 2014 20:04:31 +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: 1cc32b07-b05e-4232-b682-c4201954d16d X-Archives-Hash: 1260cf5a04377295546e798ba3d0664f Message-ID: <20141204200431.BfTlPQEnlV807_nxF4KLP3RimDBNz-8MChNtxcCeRLE@z> commit: 3ec9ab684026128e116bf028fa1b26df5daa0d26 Author: Brian Dolbec gentoo org> AuthorDate: Sat Sep 27 02:00:19 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Thu Dec 4 19:56:34 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=3ec9ab68 Sync: Update __init__.py docstrings to use a variable Same as for the emaint modules, level 2 python optimization removes docstrings. --- pym/portage/emaint/modules/sync/__init__.py | 9 ++++----- pym/portage/sync/modules/cvs/__init__.py | 11 +++++------ pym/portage/sync/modules/git/__init__.py | 11 +++++------ pym/portage/sync/modules/rsync/__init__.py | 11 +++++------ pym/portage/sync/modules/svn/__init__.py | 11 +++++------ pym/portage/sync/modules/websync/__init__.py | 11 ++++++----- 6 files changed, 30 insertions(+), 34 deletions(-) diff --git a/pym/portage/emaint/modules/sync/__init__.py b/pym/portage/emaint/modules/sync/__init__.py index 4070200..32469b5 100644 --- a/pym/portage/emaint/modules/sync/__init__.py +++ b/pym/portage/emaint/modules/sync/__init__.py @@ -1,18 +1,17 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""Check repos.conf settings and sync repositories. -""" - +doc = """Check repos.conf settings and sync repositories.""" +__doc__ = doc[:] module_spec = { 'name': 'sync', - 'description': __doc__, + 'description': doc, 'provides':{ 'sync-module': { 'name': "sync", 'class': "SyncRepos", - 'description': __doc__, + 'description': doc, 'functions': ['allrepos', 'auto', 'repo'], 'func_desc': { 'repo': { diff --git a/pym/portage/sync/modules/cvs/__init__.py b/pym/portage/sync/modules/cvs/__init__.py index fd3b12a..abf547f 100644 --- a/pym/portage/sync/modules/cvs/__init__.py +++ b/pym/portage/sync/modules/cvs/__init__.py @@ -1,10 +1,9 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""CVS plug-in module for portage. -Performs a cvs up on repositories -""" - +doc = """CVS plug-in module for portage. +Performs a cvs up on repositories.""" +__doc__ = doc[:] from portage.localization import _ from portage.sync.config_checks import CheckSyncConfig @@ -27,12 +26,12 @@ class CheckCVSConfig(CheckSyncConfig): module_spec = { 'name': 'cvs', - 'description': __doc__, + 'description': doc, 'provides':{ 'cvs-module': { 'name': "cvs", 'class': "CVSSync", - 'description': __doc__, + 'description': doc, 'functions': ['sync', 'new', 'exists'], 'func_desc': { 'sync': 'Performs a cvs up on the repository', diff --git a/pym/portage/sync/modules/git/__init__.py b/pym/portage/sync/modules/git/__init__.py index 304142e..833b389 100644 --- a/pym/portage/sync/modules/git/__init__.py +++ b/pym/portage/sync/modules/git/__init__.py @@ -1,22 +1,21 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""Git plug-in module for portage. -Performs a git pull on repositories -""" - +doc = """Git plug-in module for portage. +Performs a git pull on repositories.""" +__doc__ = doc[:] from portage.sync.config_checks import CheckSyncConfig module_spec = { 'name': 'git', - 'description': __doc__, + 'description': doc, 'provides':{ 'git-module': { 'name': "git", 'class': "GitSync", - 'description': __doc__, + 'description': doc, 'functions': ['sync', 'new', 'exists'], 'func_desc': { 'sync': 'Performs a git pull on the repository', diff --git a/pym/portage/sync/modules/rsync/__init__.py b/pym/portage/sync/modules/rsync/__init__.py index 9e19d85..9adc4c8 100644 --- a/pym/portage/sync/modules/rsync/__init__.py +++ b/pym/portage/sync/modules/rsync/__init__.py @@ -1,22 +1,21 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""Rsync plug-in module for portage. - Performs rsync transfers on repositories -""" - +doc = """Rsync plug-in module for portage. + Performs rsync transfers on repositories.""" +__doc__ = doc[:] from portage.sync.config_checks import CheckSyncConfig module_spec = { 'name': 'rsync', - 'description': __doc__, + 'description': doc, 'provides':{ 'rsync-module': { 'name': "rsync", 'class': "RsyncSync", - 'description': __doc__, + 'description': doc, 'functions': ['sync', 'new', 'exists'], 'func_desc': { 'sync': 'Performs rsync transfers on the repository', diff --git a/pym/portage/sync/modules/svn/__init__.py b/pym/portage/sync/modules/svn/__init__.py index 1fda55a..59ab950 100644 --- a/pym/portage/sync/modules/svn/__init__.py +++ b/pym/portage/sync/modules/svn/__init__.py @@ -1,10 +1,9 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""SVN plug-in module for portage. -Performs a svn up on repositories -""" - +doc = """SVN plug-in module for portage. +Performs a svn up on repositories.""" +__doc__ = doc[:] from portage.localization import _ from portage.sync.config_checks import CheckSyncConfig @@ -13,12 +12,12 @@ from portage.util import writemsg_level module_spec = { 'name': 'svn', - 'description': __doc__, + 'description': doc, 'provides':{ 'svn-module': { 'name': "svn", 'class': "SVNSync", - 'description': __doc__, + 'description': doc, 'functions': ['sync', 'new', 'exists'], 'func_desc': { 'sync': 'Performs a svn up on the repository', diff --git a/pym/portage/sync/modules/websync/__init__.py b/pym/portage/sync/modules/websync/__init__.py index e93ee10..0404610 100644 --- a/pym/portage/sync/modules/websync/__init__.py +++ b/pym/portage/sync/modules/websync/__init__.py @@ -1,10 +1,11 @@ # Copyright 2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -"""WebRSync plug-in module for portage. +doc = """WebRSync plug-in module for portage. Performs a http download of a portage snapshot, verifies and -unpacks it to the repo location. -""" +unpacks it to the repo location.""" +__doc__ = doc[:] + import os @@ -27,12 +28,12 @@ except KeyError: module_spec = { 'name': 'webrsync', - 'description': __doc__, + 'description': doc, 'provides':{ 'websync-module': { 'name': "websync", 'class': config_class, - 'description': __doc__, + 'description': doc, 'functions': ['sync', 'new', 'exists'], 'func_desc': { 'sync': 'Performs an archived http download of the ' +