Skip to content
Snippets Groups Projects
Commit 45924d52 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

STY: autopep8 on high level api

parent 548c04ac
No related branches found
No related tags found
1 merge request!109Detection of cyclic references for high level API
Pipeline #38608 passed
...@@ -827,7 +827,7 @@ def _single_convert_to_python_object(robj: CaosDBPythonEntity, ...@@ -827,7 +827,7 @@ def _single_convert_to_python_object(robj: CaosDBPythonEntity,
Returns the input object robj. Returns the input object robj.
""" """
# This parameter is used in the recursion to keep track of already visited # This parameter is used in the recursion to keep track of already visited
# entites (in order to detect cycles). # entites (in order to detect cycles).
if visited is None: if visited is None:
...@@ -837,7 +837,7 @@ def _single_convert_to_python_object(robj: CaosDBPythonEntity, ...@@ -837,7 +837,7 @@ def _single_convert_to_python_object(robj: CaosDBPythonEntity,
return visited[id(entity)] return visited[id(entity)]
else: else:
visited[id(entity)] = robj visited[id(entity)] = robj
for base_attribute in BASE_ATTRIBUTES: for base_attribute in BASE_ATTRIBUTES:
val = entity.__getattribute__(base_attribute) val = entity.__getattribute__(base_attribute)
if val is not None: if val is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment