mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-24 00:58:54 +03:00
Fix potential infinite loop in python generator
* python/generator.py: fix an infinite loop bug Daniel
This commit is contained in:
@ -754,6 +754,9 @@ def writeDoc(name, args, indent, output):
|
||||
output.write(indent)
|
||||
output.write('"""')
|
||||
while len(val) > 60:
|
||||
if val[0] == " ":
|
||||
val = val[1:]
|
||||
continue
|
||||
str = val[0:60]
|
||||
i = string.rfind(str, " ");
|
||||
if i < 0:
|
||||
|
Reference in New Issue
Block a user