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
dbcc333d
Commit
dbcc333d
authored
Dec 20, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Plain Diff
Merge "tests: fix LoggerThreadName class for recent Python"
parents
e19f35e8
59b83c04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+8
-5
No files found.
neo/tests/threaded/__init__.py
View file @
dbcc333d
...
...
@@ -333,19 +333,22 @@ class NeoCTL(neo.neoctl.app.NeoCTL):
lambda
self
,
address
:
setattr
(
self
,
'_server'
,
address
))
class
LoggerThreadName
(
object
):
class
LoggerThreadName
(
str
):
def
__
init__
(
self
,
default
=
'TEST'
):
self
.
__default
=
default
def
__
new__
(
cls
,
default
=
'TEST'
):
return
str
.
__new__
(
cls
,
default
)
def
__getattr__
(
self
,
attr
):
def
__getattr
ibute
__
(
self
,
attr
):
return
getattr
(
str
(
self
),
attr
)
def
__hash__
(
self
):
return
id
(
self
)
def
__str__
(
self
):
try
:
return
threading
.
currentThread
().
node_name
except
AttributeError
:
return
s
elf
.
__default
return
s
tr
.
__str__
(
self
)
class
Patch
(
object
):
...
...
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