From a2755d2d1a111ad4e55f88a166a5b02856d363cd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Jun 2010 08:16:41 +0000 Subject: Updated files to match PEP 257 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5904 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugins/Editor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/Server/Plugins/Editor.py') 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(',') -- cgit v1.2.3-1-g7c22