Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-WIC-Opencpc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-WIC-Opencpc
Commits
ce0e781c
Commit
ce0e781c
authored
May 10, 2018
by
joliu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标准化输出为json
parent
6be997bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
hfv/listenSer.py
hfv/listenSer.py
+1
-1
No files found.
hfv/listenSer.py
View file @
ce0e781c
...
...
@@ -88,7 +88,7 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
errorFlag
=
True
# 返回控制命令执行结果
jresp
=
json
.
dumps
((
status
,
str
(
output
)))
jresp
=
json
.
dumps
((
status
,
json
.
dumps
(
output
)))
try
:
self
.
request
.
sendall
(
jresp
.
encode
())
except
socket
.
error
as
err_msg
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment