Skip to content

Commit

Permalink
replace deprecated collections usage with collections.abc
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed Nov 21, 2018
1 parent fc8b868 commit 387dd37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rosidl_generator_py/resource/_msg.py.em
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ if field.name in dict(inspect.getmembers(builtins)).keys():
from @(field.type.pkg_name).msg import @(field.type.type)
@[ end if]@
@[ if field.type.is_array]@
from collections import Sequence
from collections import Set
from collections.abc import Sequence
from collections.abc import Set
from collections import UserList
from collections import UserString
@[ elif field.type.string_upper_bound]@
from collections import UserString
@[ elif field.type.type == 'byte']@
from collections import ByteString
from collections.abc import ByteString
@[ elif field.type.type in ['char']]@
from collections import UserString
@[ end if]@
Expand Down

0 comments on commit 387dd37

Please sign in to comment.