Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/sync/modules/websync/, pym/portage/sync/modules/git/, ...
Date: Mon, 29 Sep 2014 18:29:42
Message-Id: 1412011222.b24553cc8768690103bf5ce64eb9e15e53791f15.dol-sen@gentoo
1 commit: b24553cc8768690103bf5ce64eb9e15e53791f15
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 27 02:00:19 2014 +0000
4 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
5 CommitDate: Mon Sep 29 17:20:22 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=b24553cc
7
8 Sync: Update __init__.py docstrings to use a variable
9
10 Same as for the emaint modules, level 2 python optimization removes docstrings.
11
12 ---
13 pym/portage/emaint/modules/sync/__init__.py | 9 ++++-----
14 pym/portage/sync/modules/cvs/__init__.py | 11 +++++------
15 pym/portage/sync/modules/git/__init__.py | 11 +++++------
16 pym/portage/sync/modules/rsync/__init__.py | 11 +++++------
17 pym/portage/sync/modules/svn/__init__.py | 11 +++++------
18 pym/portage/sync/modules/websync/__init__.py | 11 ++++++-----
19 6 files changed, 30 insertions(+), 34 deletions(-)
20
21 diff --git a/pym/portage/emaint/modules/sync/__init__.py b/pym/portage/emaint/modules/sync/__init__.py
22 index 4070200..32469b5 100644
23 --- a/pym/portage/emaint/modules/sync/__init__.py
24 +++ b/pym/portage/emaint/modules/sync/__init__.py
25 @@ -1,18 +1,17 @@
26 # Copyright 2014 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28
29 -"""Check repos.conf settings and sync repositories.
30 -"""
31 -
32 +doc = """Check repos.conf settings and sync repositories."""
33 +__doc__ = doc[:]
34
35 module_spec = {
36 'name': 'sync',
37 - 'description': __doc__,
38 + 'description': doc,
39 'provides':{
40 'sync-module': {
41 'name': "sync",
42 'class': "SyncRepos",
43 - 'description': __doc__,
44 + 'description': doc,
45 'functions': ['allrepos', 'auto', 'repo'],
46 'func_desc': {
47 'repo': {
48
49 diff --git a/pym/portage/sync/modules/cvs/__init__.py b/pym/portage/sync/modules/cvs/__init__.py
50 index fd3b12a..abf547f 100644
51 --- a/pym/portage/sync/modules/cvs/__init__.py
52 +++ b/pym/portage/sync/modules/cvs/__init__.py
53 @@ -1,10 +1,9 @@
54 # Copyright 2014 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56
57 -"""CVS plug-in module for portage.
58 -Performs a cvs up on repositories
59 -"""
60 -
61 +doc = """CVS plug-in module for portage.
62 +Performs a cvs up on repositories."""
63 +__doc__ = doc[:]
64
65 from portage.localization import _
66 from portage.sync.config_checks import CheckSyncConfig
67 @@ -27,12 +26,12 @@ class CheckCVSConfig(CheckSyncConfig):
68
69 module_spec = {
70 'name': 'cvs',
71 - 'description': __doc__,
72 + 'description': doc,
73 'provides':{
74 'cvs-module': {
75 'name': "cvs",
76 'class': "CVSSync",
77 - 'description': __doc__,
78 + 'description': doc,
79 'functions': ['sync', 'new', 'exists'],
80 'func_desc': {
81 'sync': 'Performs a cvs up on the repository',
82
83 diff --git a/pym/portage/sync/modules/git/__init__.py b/pym/portage/sync/modules/git/__init__.py
84 index 304142e..833b389 100644
85 --- a/pym/portage/sync/modules/git/__init__.py
86 +++ b/pym/portage/sync/modules/git/__init__.py
87 @@ -1,22 +1,21 @@
88 # Copyright 2014 Gentoo Foundation
89 # Distributed under the terms of the GNU General Public License v2
90
91 -"""Git plug-in module for portage.
92 -Performs a git pull on repositories
93 -"""
94 -
95 +doc = """Git plug-in module for portage.
96 +Performs a git pull on repositories."""
97 +__doc__ = doc[:]
98
99 from portage.sync.config_checks import CheckSyncConfig
100
101
102 module_spec = {
103 'name': 'git',
104 - 'description': __doc__,
105 + 'description': doc,
106 'provides':{
107 'git-module': {
108 'name': "git",
109 'class': "GitSync",
110 - 'description': __doc__,
111 + 'description': doc,
112 'functions': ['sync', 'new', 'exists'],
113 'func_desc': {
114 'sync': 'Performs a git pull on the repository',
115
116 diff --git a/pym/portage/sync/modules/rsync/__init__.py b/pym/portage/sync/modules/rsync/__init__.py
117 index 9e19d85..9adc4c8 100644
118 --- a/pym/portage/sync/modules/rsync/__init__.py
119 +++ b/pym/portage/sync/modules/rsync/__init__.py
120 @@ -1,22 +1,21 @@
121 # Copyright 2014 Gentoo Foundation
122 # Distributed under the terms of the GNU General Public License v2
123
124 -"""Rsync plug-in module for portage.
125 - Performs rsync transfers on repositories
126 -"""
127 -
128 +doc = """Rsync plug-in module for portage.
129 + Performs rsync transfers on repositories."""
130 +__doc__ = doc[:]
131
132 from portage.sync.config_checks import CheckSyncConfig
133
134
135 module_spec = {
136 'name': 'rsync',
137 - 'description': __doc__,
138 + 'description': doc,
139 'provides':{
140 'rsync-module': {
141 'name': "rsync",
142 'class': "RsyncSync",
143 - 'description': __doc__,
144 + 'description': doc,
145 'functions': ['sync', 'new', 'exists'],
146 'func_desc': {
147 'sync': 'Performs rsync transfers on the repository',
148
149 diff --git a/pym/portage/sync/modules/svn/__init__.py b/pym/portage/sync/modules/svn/__init__.py
150 index 1fda55a..59ab950 100644
151 --- a/pym/portage/sync/modules/svn/__init__.py
152 +++ b/pym/portage/sync/modules/svn/__init__.py
153 @@ -1,10 +1,9 @@
154 # Copyright 2014 Gentoo Foundation
155 # Distributed under the terms of the GNU General Public License v2
156
157 -"""SVN plug-in module for portage.
158 -Performs a svn up on repositories
159 -"""
160 -
161 +doc = """SVN plug-in module for portage.
162 +Performs a svn up on repositories."""
163 +__doc__ = doc[:]
164
165 from portage.localization import _
166 from portage.sync.config_checks import CheckSyncConfig
167 @@ -13,12 +12,12 @@ from portage.util import writemsg_level
168
169 module_spec = {
170 'name': 'svn',
171 - 'description': __doc__,
172 + 'description': doc,
173 'provides':{
174 'svn-module': {
175 'name': "svn",
176 'class': "SVNSync",
177 - 'description': __doc__,
178 + 'description': doc,
179 'functions': ['sync', 'new', 'exists'],
180 'func_desc': {
181 'sync': 'Performs a svn up on the repository',
182
183 diff --git a/pym/portage/sync/modules/websync/__init__.py b/pym/portage/sync/modules/websync/__init__.py
184 index e93ee10..0404610 100644
185 --- a/pym/portage/sync/modules/websync/__init__.py
186 +++ b/pym/portage/sync/modules/websync/__init__.py
187 @@ -1,10 +1,11 @@
188 # Copyright 2014 Gentoo Foundation
189 # Distributed under the terms of the GNU General Public License v2
190
191 -"""WebRSync plug-in module for portage.
192 +doc = """WebRSync plug-in module for portage.
193 Performs a http download of a portage snapshot, verifies and
194 -unpacks it to the repo location.
195 -"""
196 +unpacks it to the repo location."""
197 +__doc__ = doc[:]
198 +
199
200 import os
201
202 @@ -27,12 +28,12 @@ except KeyError:
203
204 module_spec = {
205 'name': 'webrsync',
206 - 'description': __doc__,
207 + 'description': doc,
208 'provides':{
209 'websync-module': {
210 'name': "websync",
211 'class': config_class,
212 - 'description': __doc__,
213 + 'description': doc,
214 'functions': ['sync', 'new', 'exists'],
215 'func_desc': {
216 'sync': 'Performs an archived http download of the ' +