Skip to content

Commit

Permalink
more descriptive variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Mikael Arguedas <[email protected]>
  • Loading branch information
mikaelarguedas committed Mar 28, 2019
1 parent 0271e56 commit 4b5a82d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rosidl_generator_py/resource/_idl.py.em
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import_statements = set()
@#######################################################################
@{
from rosidl_parser.definition import Message
msg_required_import_imported = False
rosidl_parser_definition_imported = False
}@
@[for message in content.get_elements_of_type(Message)]@
@[ if not msg_required_import_imported]@
@{msg_required_import_imported = True}@
@[ if not rosidl_parser_definition_imported]@
@{rosidl_parser_definition_imported = True}@
import rosidl_parser.definition
@[ end if]@
@{
Expand All @@ -41,8 +41,8 @@ TEMPLATE(
from rosidl_parser.definition import Service
}@
@[for service in content.get_elements_of_type(Service)]@
@[ if not msg_required_import_imported]@
@{msg_required_import_imported = True}@
@[ if not rosidl_parser_definition_imported]@
@{rosidl_parser_definition_imported = True}@
import rosidl_parser.definition
@[ end if]@
@{
Expand All @@ -60,8 +60,8 @@ TEMPLATE(
from rosidl_parser.definition import Action
}@
@[for action in content.get_elements_of_type(Action)]@
@[ if not msg_required_import_imported]@
@{msg_required_import_imported = True}@
@[ if not rosidl_parser_definition_imported]@
@{rosidl_parser_definition_imported = True}@
import rosidl_parser.definition
@[ end if]@
@{
Expand Down

0 comments on commit 4b5a82d

Please sign in to comment.