mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 21:58:08 +00:00
Bugfixes in abstractapi.py and metadoc.py
* prevent metadoc.Translator.translate() from crashing when None is passed as argument. * set the briefDescription attributes of enum values$
This commit is contained in:
parent
9398d378c2
commit
e4068bb84f
2 changed files with 4 additions and 0 deletions
|
|
@ -593,6 +593,7 @@ class CParser(object):
|
|||
valueName = EnumValueName()
|
||||
valueName.from_camel_case(cEnumValue.name, namespace=name)
|
||||
aEnumValue = EnumValue(valueName)
|
||||
aEnumValue.briefDescription = cEnumValue.briefDoc
|
||||
if cEnumValue.value is not None:
|
||||
try:
|
||||
aEnumValue.value_from_string(cEnumValue.value)
|
||||
|
|
|
|||
|
|
@ -56,6 +56,9 @@ class Description:
|
|||
|
||||
class Translator:
|
||||
def translate(self, description):
|
||||
if description is None:
|
||||
return None
|
||||
|
||||
lines = []
|
||||
for para in description.paragraphs:
|
||||
if para is not description.paragraphs[0]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue