[gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/sync/modules/websync/, pym/portage/sync/modules/cvs/, ...

2014-12-01 Thread Michał Górny
commit: c31ced05678d10d1708295c494c7e014dac575af
Author: Brian Dolbec dolsen AT gentoo DOT org
AuthorDate: Sat Sep 27 02:00:19 2014 +
Commit: Michał Górny mgorny AT gentoo DOT org
CommitDate: Mon Dec  1 21:49:41 2014 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c31ced05

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,
-   

[gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/sync/modules/websync/, pym/portage/sync/modules/cvs/, ...

2014-10-19 Thread Zac Medico
commit: 47cc16a9ab7819043f657fe55ac9d0ecbe084b61
Author: Brian Dolbec dolsen AT gentoo DOT org
AuthorDate: Mon Apr 21 18:25:55 2014 +
Commit: Zac Medico zmedico AT gentoo DOT org
CommitDate: Mon Oct 20 03:48:33 2014 +
URL:
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=47cc16a9

sync/modules/*: Remove unused func_parameters in module_spec

---
 pym/portage/sync/modules/cvs/__init__.py | 10 --
 pym/portage/sync/modules/git/__init__.py | 10 --
 pym/portage/sync/modules/rsync/__init__.py   | 10 --
 pym/portage/sync/modules/websync/__init__.py | 10 --
 4 files changed, 40 deletions(-)

diff --git a/pym/portage/sync/modules/cvs/__init__.py 
b/pym/portage/sync/modules/cvs/__init__.py
index e1e0920..fd3b12a 100644
--- a/pym/portage/sync/modules/cvs/__init__.py
+++ b/pym/portage/sync/modules/cvs/__init__.py
@@ -40,16 +40,6 @@ module_spec = {
'exists': 'Returns a boolean of whether the 
specified dir ' +
'exists and is a valid CVS repository',
},
-   'func_parameters': {
-   'kwargs': {
-   'type': dict,
-   'description': 'Standard python 
**kwargs parameter format' +
-   'Please refer to the sync 
modules specs at ' +
-   
'https://wiki.gentoo.org:Project:Portage; for details',
-   'required-keys': ['options', 
'settings', 'logger', 'repo',
-   'xterm_titles', 'spawn_kwargs'],
-   },
-   },
'validate_config': CheckCVSConfig,
}
}

diff --git a/pym/portage/sync/modules/git/__init__.py 
b/pym/portage/sync/modules/git/__init__.py
index 593e95d..304142e 100644
--- a/pym/portage/sync/modules/git/__init__.py
+++ b/pym/portage/sync/modules/git/__init__.py
@@ -24,16 +24,6 @@ module_spec = {
'exists': 'Returns a boolean of whether the 
specified dir ' +
'exists and is a valid Git repository',
},
-   'func_parameters': {
-   'kwargs': {
-   'type': dict,
-   'description': 'Standard python 
**kwargs parameter format' +
-   'Please refer to the sync 
modules specs at ' +
-   
'https://wiki.gentoo.org:Project:Portage; for details',
-   'required-keys': ['options', 
'settings', 'logger', 'repo',
-   'xterm_titles', 'spawn_kwargs'],
-   },
-   },
'validate_config': CheckSyncConfig,
}
}

diff --git a/pym/portage/sync/modules/rsync/__init__.py 
b/pym/portage/sync/modules/rsync/__init__.py
index ce1daa1..9e19d85 100644
--- a/pym/portage/sync/modules/rsync/__init__.py
+++ b/pym/portage/sync/modules/rsync/__init__.py
@@ -23,16 +23,6 @@ module_spec = {
'new': 'Creates the new repository at the 
specified location',
'exists': 'Returns a boolean if the specified 
directory exists',
},
-   'func_parameters': {
-   'kwargs': {
-   'type': dict,
-   'description': 'Standard python 
**kwargs parameter format' +
-   'Please refer to the sync 
modules specs at ' +
-   
'https://wiki.gentoo.org:Project:Portage; for details',
-   'required-keys': ['options', 
'settings', 'logger', 'repo',
-   'xterm_titles', 'spawn_kwargs'],
-   },
-   },
'validate_config': CheckSyncConfig,
}
}

diff --git a/pym/portage/sync/modules/websync/__init__.py 
b/pym/portage/sync/modules/websync/__init__.py
index 6251535..e93ee10 100644
--- a/pym/portage/sync/modules/websync/__init__.py
+++ b/pym/portage/sync/modules/websync/__init__.py
@@ -42,16 +42,6 @@ module_spec = {
'exists': 'Returns a boolean of whether the 
specified dir ' +
'exists and is a valid repository',
},
-   'func_parameters': {
-