Update for Vulkan-Docs 1.2.195

This commit is contained in:
Jon Leech 2021-10-05 04:26:53 -07:00 committed by Jon Leech
parent e500c7c809
commit fa27a13cf7
14 changed files with 2873 additions and 430 deletions

View file

@ -43,7 +43,10 @@ def enquote(s):
"""Return string argument with surrounding quotes,
for serialization into Python code."""
if s:
return "'{}'".format(s)
if isinstance(s, str):
return "'{}'".format(s)
else:
return s
return None
@ -778,7 +781,6 @@ class OutputGenerator:
self.warnFile.flush()
if self.diagFile:
self.diagFile.flush()
self.outFile.flush()
if self.outFile != sys.stdout and self.outFile != sys.stderr:
self.outFile.close()