提交 7251f72e 编写于 作者: M MRXLT

fix compile

上级 ea9f4eb4
......@@ -6,7 +6,7 @@ include(framework/CMakeLists.txt)
include(tools/CMakeLists.txt)
include(src/CMakeLists.txt)
add_definitions(-D__STDC_FORMAT_MACROS)
add_library(pdserving ${pdserving_srcs})
set_source_files_properties(
${pdserving_srcs}
......
......@@ -23,7 +23,7 @@ def update_info(file_name, feature, info):
with open(file_name, "r") as f:
for line in f.readlines():
if re.match(feature, line):
line = feature + " = \"" + info.strip().decode("utf-8") + "\"\n"
line = feature + " = \"" + info.decode('utf-8').strip() + "\"\n"
new_str = new_str + line
with open(file_name, "w") as f:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册