From 95165e90672f6753c3f2a3b18bf393079df2375a Mon Sep 17 00:00:00 2001 From: Overwatch Date: Sun, 8 Feb 2015 23:53:54 +0100 Subject: [PATCH] fixed a nasty bug in over.core.cmd.Command's doc string --- core/cmd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/cmd.py b/core/cmd.py index a7d04d5..4cc2963 100644 --- a/core/cmd.py +++ b/core/cmd.py @@ -30,7 +30,7 @@ class Command: ''' A shell command with argument substitution and output capture. - >>> c = Command(['process.sh', '-x', 'ARGUMENT']) + >>> c = Command('process.sh', '-x', 'ARGUMENT') >>> c.ARGUMENT = 'file.txt' >>> c.dump() ['process.sh', '-x', 'file.txt'] @@ -58,8 +58,8 @@ class Command: self.sequence[i] = value found = True - #if not found: - #raise AttributeError('Command has no attribute \'%s\'' %(name)) + if not found: + raise AttributeError('Command has no attribute \'%s\'' %(name)) def reset(self): self.__dict__['sequence'] = list(self.sequence_original)