Skip to content

Commit 17d4d67

Browse files
ahcordemjcarroll
authored andcommitted
make linters happy
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
1 parent 0ccb306 commit 17d4d67

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

ros2topic/ros2topic/eval/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
# MIT License
2-
3-
# Copyright (c) 2022 Yaroslav Polyakov
4-
1+
# Copyright 2022 Yaroslav Polyakov
2+
#
53
# Permission is hereby granted, free of charge, to any person obtaining a copy
64
# of this software and associated documentation files (the "Software"), to deal
75
# in the Software without restriction, including without limitation the rights
86
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
97
# copies of the Software, and to permit persons to whom the Software is
108
# furnished to do so, subject to the following conditions:
11-
12-
# The above copyright notice and this permission notice shall be included in all
13-
# copies or substantial portions of the Software.
14-
9+
#
10+
# The above copyright notice and this permission notice shall be included in
11+
# all copies or substantial portions of the Software.
12+
#
1513
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1614
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1917
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
# SOFTWARE.
18+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
# THE SOFTWARE.
20+
2221

2322
"""Safe user-supplied python expression evaluation."""
2423

@@ -131,6 +130,7 @@ def generic_visit(self, node):
131130

132131

133132
class Expr():
133+
134134
def __init__(self, expr, model=None, filename=None):
135135

136136
self.expr = expr

ros2topic/ros2topic/verb/hz.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def _setup_base_safe_eval():
123123
safe_eval_model.allowed_functions.extend(safe_builtins)
124124
return safe_eval_model
125125

126+
126127
def _setup_safe_eval(safe_eval_model, msg_class, topic):
127128
# allow-list topic builtins, msg attributes
128129
topic_builtins = [i for i in dir(topic) if not i.startswith('_')]

0 commit comments

Comments
 (0)