Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bis-aria
ariaec
Commits
b033604a
Commit
b033604a
authored
Jun 28, 2019
by
Fabrice ALLAIN
Browse files
refactor: remove duplicated lines in ariabase
parent
6c209afa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/aria/core/ariabase.py
View file @
b033604a
...
...
@@ -229,14 +229,6 @@ class AriaBaseClass:
if
self
.
__class__
.
display_debug
:
logging
.
getLogger
().
setLevel
(
logging
.
DEBUG
)
def
__getstate__
(
self
):
"""
Remove logger attribute in order to pickle every ariabase object instance
"""
d
=
dict
(
self
.
__dict__
)
del
d
[
'logger'
]
return
d
def
__setstate__
(
self
,
d
):
d
[
'logger'
]
=
logging
.
getLogger
(
self
.
__module__
)
self
.
__dict__
.
update
(
d
)
...
...
@@ -253,10 +245,6 @@ class AriaBaseClass:
del
d
[
'logger'
]
return
d
def
__setstate__
(
self
,
d
):
d
[
'logger'
]
=
logging
.
getLogger
(
self
.
__module__
)
self
.
__dict__
.
update
(
d
)
@
staticmethod
def
get_version_string
():
return
AriaBaseClass
.
VERSION_FORMAT
%
(
...
...
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