mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
Fix potential infinite loop in python generator
* python/generator.py: fix an infinite loop bug Daniel
This commit is contained in:
parent
7c61b48202
commit
2579443e21
@ -1,3 +1,7 @@
|
|||||||
|
Tue Apr 8 10:19:01 CEST 2008 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* python/generator.py: fix an infinite loop bug
|
||||||
|
|
||||||
Mon Apr 7 14:36:56 CET 2008 Jim Meyering <meyering@redhat.com>
|
Mon Apr 7 14:36:56 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
* tests/vcpupin: Add a test for the 2008-04-04 virsh.c bugfix.
|
* tests/vcpupin: Add a test for the 2008-04-04 virsh.c bugfix.
|
||||||
|
@ -754,6 +754,9 @@ def writeDoc(name, args, indent, output):
|
|||||||
output.write(indent)
|
output.write(indent)
|
||||||
output.write('"""')
|
output.write('"""')
|
||||||
while len(val) > 60:
|
while len(val) > 60:
|
||||||
|
if val[0] == " ":
|
||||||
|
val = val[1:]
|
||||||
|
continue
|
||||||
str = val[0:60]
|
str = val[0:60]
|
||||||
i = string.rfind(str, " ");
|
i = string.rfind(str, " ");
|
||||||
if i < 0:
|
if i < 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user