Skip to content

Commit

Permalink
Python 3 support (#122)
Browse files Browse the repository at this point in the history
generated using 2to3
  • Loading branch information
mgrrx authored Feb 3, 2020
1 parent a183b76 commit b66df69
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/class_loader_headers_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
# Run this script to update legacy pluginlib macros to utilize new
# simplified PLUGINLIB_EXPORT_CLASS macro.

from __future__ import print_function

import subprocess

Expand All @@ -59,8 +58,8 @@
sed_cmd_suffix = ' {} \; '
sed_separator = '@'
full_cmd = cmd
for old_header, new_header in header_mappings.iteritems():
for leading_token, ending_token in include_tokens.iteritems():
for old_header, new_header in header_mappings.items():
for leading_token, ending_token in include_tokens.items():
full_cmd += \
sed_cmd_prefix + sed_separator + \
include_prefix + leading_token + old_header + ending_token + sed_separator + \
Expand Down

0 comments on commit b66df69

Please sign in to comment.