diff options
author | Fabian Affolter <fabian@bernewireless.net> | 2010-06-08 08:16:41 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-06-09 08:09:54 -0500 |
commit | a2755d2d1a111ad4e55f88a166a5b02856d363cd (patch) | |
tree | 82dabe1dbbe429e9d5cbe554ffb16702a79041d2 /src/lib/Server/Plugins/Editor.py | |
parent | e31f5234256e5234348fc67cf45e6f3462e1fbb8 (diff) | |
download | bcfg2-a2755d2d1a111ad4e55f88a166a5b02856d363cd.tar.gz bcfg2-a2755d2d1a111ad4e55f88a166a5b02856d363cd.tar.bz2 bcfg2-a2755d2d1a111ad4e55f88a166a5b02856d363cd.zip |
Updated files to match PEP 257
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5904 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugins/Editor.py')
-rw-r--r-- | src/lib/Server/Plugins/Editor.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/Editor.py b/src/lib/Server/Plugins/Editor.py index 76adaf4cb..bfd4d6e93 100644 --- a/src/lib/Server/Plugins/Editor.py +++ b/src/lib/Server/Plugins/Editor.py @@ -3,7 +3,7 @@ import re import lxml.etree def linesub(pattern, repl, filestring): - '''Substitutes instances of pattern with repl in filestring''' + """Substitutes instances of pattern with repl in filestring.""" if filestring == None: filestring = '' output = list() @@ -13,9 +13,9 @@ def linesub(pattern, repl, filestring): return '\n'.join(output) class EditDirectives(Bcfg2.Server.Plugin.SpecificData): - '''This object handles the editing directives''' + """This object handles the editing directives.""" def ProcessDirectives(self, input): - '''Processes a list of edit directives on input''' + """Processes a list of edit directives on input.""" temp = input for directive in self.data.split('\n'): directive = directive.split(',') |