Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
coco
Commits
eb65fae6
Commit
eb65fae6
authored
Jan 07, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改model
parent
9ae0d620
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
models.py
coco/models.py
+2
-1
recorder.py
coco/recorder.py
+0
-8
No files found.
coco/models.py
View file @
eb65fae6
...
@@ -360,7 +360,8 @@ class BaseServer(object):
...
@@ -360,7 +360,8 @@ class BaseServer(object):
def
close
(
self
):
def
close
(
self
):
logger
.
info
(
"Close server to {}"
.
format
(
self
))
logger
.
info
(
"Close server to {}"
.
format
(
self
))
self
.
r_input_output_data_filter
(
b
''
)
self
.
s_input_state_filter
(
b
''
)
self
.
s_parse_input_output_filter
(
b
''
)
self
.
chan
.
close
()
self
.
chan
.
close
()
def
__getattr__
(
self
,
item
):
def
__getattr__
(
self
,
item
):
...
...
coco/recorder.py
View file @
eb65fae6
...
@@ -117,14 +117,6 @@ class CommandRecorder(object):
...
@@ -117,14 +117,6 @@ class CommandRecorder(object):
storage
=
None
storage
=
None
_cache
=
[]
_cache
=
[]
def
__new__
(
cls
,
*
args
,
**
kwargs
):
if
cls
.
_cache
:
return
cls
.
_cache
[
0
]
else
:
self
=
super
(
CommandRecorder
,
cls
)
.
__new__
(
cls
,
*
args
,
**
kwargs
)
cls
.
_cache
.
append
(
self
)
return
self
def
__init__
(
self
):
def
__init__
(
self
):
super
(
CommandRecorder
,
self
)
.
__init__
()
super
(
CommandRecorder
,
self
)
.
__init__
()
self
.
queue
=
MemoryQueue
()
self
.
queue
=
MemoryQueue
()
...
...
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