Fix #115056: man page generation fails with Python error
Need to convert byte to string. Pull Request: https://projects.blender.org/blender/blender/pulls/115127
This commit is contained in:
committed by
Brecht Van Lommel
parent
b9227da2db
commit
70e2c0bcd4
@@ -41,7 +41,7 @@ def blender_extract_info() -> Dict[str, str]:
|
|||||||
# Happens when built without WITH_BUILD_INFO e.g.
|
# Happens when built without WITH_BUILD_INFO e.g.
|
||||||
blender_date = time.strftime("%B %d, %Y", time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))
|
blender_date = time.strftime("%B %d, %Y", time.gmtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))))
|
||||||
else:
|
else:
|
||||||
blender_date = time.strftime("%B %d, %Y", time.strptime(blender_build_date_text, "%Y-%m-%d"))
|
blender_date = time.strftime("%B %d, %Y", time.strptime(blender_build_date_text.decode(), "%Y-%m-%d"))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"help": blender_help_text,
|
"help": blender_help_text,
|
||||||
|
|||||||
Reference in New Issue
Block a user