Skip to content

Commit 3b2dde6

Browse files
Update python_expression.py
Signed-off-by: Aditya Pande <[email protected]>
1 parent cb098a6 commit 3b2dde6

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

launch/launch/substitutions/python_expression.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,9 @@ def __init__(self, expression: SomeSubstitutionsType) -> None:
5353
@classmethod
5454
def parse(cls, data: Iterable[SomeSubstitutionsType]):
5555
"""Parse `PythonExpression` substitution."""
56-
<<<<<<< HEAD
5756
if len(data) != 1:
5857
raise TypeError('eval substitution expects 1 argument')
5958
return cls, {'expression': data[0]}
60-
=======
61-
if len(data) < 1 or len(data) > 2:
62-
raise TypeError('eval substitution expects 1 or 2 arguments')
63-
kwargs = {}
64-
kwargs['expression'] = data[0]
65-
if len(data) == 2:
66-
# We get a text substitution from XML,
67-
# whose contents are comma-separated module names
68-
kwargs['python_modules'] = []
69-
# Check if we got empty list from XML
70-
if len(data[1]) > 0:
71-
modules_str = data[1][0].perform(None)
72-
kwargs['python_modules'] = [module.strip() for module in modules_str.split(',')]
73-
return cls, kwargs
74-
>>>>>>> 2a84352 (Fixed typos (#692))
7559

7660
@property
7761
def expression(self) -> List[Substitution]:

0 commit comments

Comments
 (0)