c54bcf4...
by
=?utf-8?q?Steven!_Ragnar=C3=B6k?= <email address hidden>
Use pickle protocol format version 2. (#633)
* Use pickle protocol format version 2.
* Test that files pickled with python2 and python3 are the same.
Adds two test fixture files, a rosdep cache sample generated from
python2 and one generated from python3 and makes sure that they both
unpickle to the same data structure.
Two classes of changes here:
1. `catkin_support.py` is executable, but has no shebang, so I removed
the executable bit.
2. `main.py` has a shebang and `__main__` handler, and I removed it. It
can still be executed directly using the python executable, but like
with ros-infrastructure/rospkg#159, it doesn't make sense to have
executable scripts in the module.
I think that I'm seeing this because doc builds are happening with
python 3 on Fedora. Here is the error I'm seeing:
```
...
File "./rosdep_doc_utils.py", line 38, in run
nodes.literal_block(text=re.sub(escaped_capitalized_usage, '', out))
File "/usr/lib64/python3.6/re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: cannot use a string pattern on a bytes-like object
```