Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
91c66356
Commit
91c66356
authored
Aug 02, 2015
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add file descriptor and aborted flag to __repr__ of connections
parent
cb8a5a88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
neo/lib/connection.py
neo/lib/connection.py
+7
-2
No files found.
neo/lib/connection.py
View file @
91c66356
...
@@ -252,11 +252,16 @@ class BaseConnection(object):
...
@@ -252,11 +252,16 @@ class BaseConnection(object):
self
.
aborted
=
False
self
.
aborted
=
False
def
_getReprInfo
(
self
):
def
_getReprInfo
(
self
):
r
eturn
[
r
=
[
(
'uuid'
,
uuid_str
(
self
.
getUUID
())),
(
'uuid'
,
uuid_str
(
self
.
getUUID
())),
(
'address'
,
'%s:%u'
%
self
.
addr
if
self
.
addr
else
'?'
),
(
'address'
,
'%s:%u'
%
self
.
addr
if
self
.
addr
else
'?'
),
(
'handler'
,
self
.
getHandler
()),
(
'handler'
,
self
.
getHandler
()),
],
[
'closed'
]
if
self
.
isClosed
()
else
[]
]
connector
=
self
.
connector
if
connector
is
None
:
return
r
,
[
'closed'
]
r
.
append
((
'fd'
,
connector
.
getDescriptor
()))
return
r
,
[
'aborted'
]
if
self
.
isAborted
()
else
[]
def
__repr__
(
self
):
def
__repr__
(
self
):
r
,
flags
=
self
.
_getReprInfo
()
r
,
flags
=
self
.
_getReprInfo
()
...
...
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