mirror of
https://github.com/clearml/clearml
synced 2025-06-26 10:05:55 +00:00
Fix PEP8 issues
This commit is contained in:
parent
701582d5ff
commit
9e69b09c9f
@ -3221,8 +3221,10 @@ class PipelineController(object):
|
|||||||
name=artifact_name,
|
name=artifact_name,
|
||||||
artifact_object=artifact_object,
|
artifact_object=artifact_object,
|
||||||
wait_on_upload=True,
|
wait_on_upload=True,
|
||||||
extension_name=".pkl" if isinstance(artifact_object, dict) and
|
extension_name=(
|
||||||
not self._artifact_serialization_function else None,
|
".pkl" if isinstance(artifact_object, dict) and not self._artifact_serialization_function
|
||||||
|
else None
|
||||||
|
),
|
||||||
serialization_function=self._artifact_serialization_function
|
serialization_function=self._artifact_serialization_function
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -246,7 +246,6 @@ class PatchOsFork(object):
|
|||||||
|
|
||||||
os._exit = _at_exit_callback
|
os._exit = _at_exit_callback
|
||||||
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _patched_fork(*args, **kwargs):
|
def _patched_fork(*args, **kwargs):
|
||||||
if not PatchOsFork._current_task:
|
if not PatchOsFork._current_task:
|
||||||
|
@ -287,7 +287,7 @@ class WrapperBase(type):
|
|||||||
# (http://code.activestate.com/recipes/496741/). It adds special methods
|
# (http://code.activestate.com/recipes/496741/). It adds special methods
|
||||||
# to the wrapper class so it can proxy the wrapped class. In addition, it
|
# to the wrapper class so it can proxy the wrapped class. In addition, it
|
||||||
# adds a field __overrides__ in the wrapper class dictionary, containing
|
# adds a field __overrides__ in the wrapper class dictionary, containing
|
||||||
# all attributes decorated to be overriden.
|
# all attributes decorated to be overridden.
|
||||||
|
|
||||||
_special_names = [
|
_special_names = [
|
||||||
'__abs__', '__add__', '__and__', '__call__', '__cmp__', '__coerce__',
|
'__abs__', '__add__', '__and__', '__call__', '__cmp__', '__coerce__',
|
||||||
|
Loading…
Reference in New Issue
Block a user