Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Ivan Tyagov
neoppod
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