coding style: separate property definitions from each other

While not strictly needed in Python, it's much clearer this way.

Change-Id: I5f8caccde6440cb4032aae5deae577d328834a75
This commit is contained in:
Jan Kundrát
2020-05-23 15:17:41 +02:00
parent 9faf6430a5
commit 785c823fa2
2 changed files with 3 additions and 0 deletions

View File

@@ -121,6 +121,7 @@ class Request_element(Element):
self.path_bandwidth = 0
uid = property(lambda self: repr(self))
@property
def pathrequest(self):
# Default assumption for bidir is False

View File

@@ -140,7 +140,9 @@ class ResultElement(Element):
# starting implementing reversed properties in case of bidir demand
if reversed_computed_path is not None:
self.reversed_computed_path = reversed_computed_path
uid = property(lambda self: repr(self))
@property
def detailed_path_json(self):
""" a function that builds path object for normal and blocking cases