fixed a nasty bug in over.core.cmd.Command's doc string
This commit is contained in:
parent
4d92470f6d
commit
95165e9067
1 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ class Command:
|
||||||
'''
|
'''
|
||||||
A shell command with argument substitution and output capture.
|
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.ARGUMENT = 'file.txt'
|
||||||
>>> c.dump()
|
>>> c.dump()
|
||||||
['process.sh', '-x', 'file.txt']
|
['process.sh', '-x', 'file.txt']
|
||||||
|
@ -58,8 +58,8 @@ class Command:
|
||||||
self.sequence[i] = value
|
self.sequence[i] = value
|
||||||
found = True
|
found = True
|
||||||
|
|
||||||
#if not found:
|
if not found:
|
||||||
#raise AttributeError('Command has no attribute \'%s\'' %(name))
|
raise AttributeError('Command has no attribute \'%s\'' %(name))
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
self.__dict__['sequence'] = list(self.sequence_original)
|
self.__dict__['sequence'] = list(self.sequence_original)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue