Imported Upstream version 0.5.6
Jochen Sprickerhof
8 years ago
0 | 0 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
1 | 1 |
Changelog for package genpy
|
2 | 2 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
3 |
|
|
4 |
0.5.6 (2015-10-12)
|
|
5 |
------------------
|
|
6 |
* fix handling of dynamic message classes with names containing other message classes as substrings (`#40 <https://github.com/ros/genpy/pull/40>`_)
|
3 | 7 |
|
4 | 8 |
0.5.5 (2015-09-19)
|
5 | 9 |
------------------
|
0 | 0 |
<?xml version="1.0"?>
|
1 | 1 |
<package>
|
2 | 2 |
<name>genpy</name>
|
3 | |
<version>0.5.5</version>
|
|
3 |
<version>0.5.6</version>
|
4 | 4 |
<description>Python ROS message and service generators.</description>
|
5 | 5 |
<maintainer email="dthomas@osrfoundation.org">Dirk Thomas</maintainer>
|
6 | 6 |
<license>BSD</license>
|
42 | 42 |
|
43 | 43 |
import atexit
|
44 | 44 |
import os
|
|
45 |
import re
|
45 | 46 |
import shutil
|
46 | 47 |
import sys
|
47 | 48 |
import tempfile
|
|
93 | 94 |
# - remove any import statements
|
94 | 95 |
py_text = py_text.replace("import %s.msg"%pkg, '')
|
95 | 96 |
# - rewrite any references to class
|
96 | |
py_text = py_text.replace("%s.msg.%s"%(pkg, base_type), gen_name)
|
|
97 |
py_text = re.sub("(?<!\w)%s\.msg\.%s(?!\w)"%(pkg, base_type), gen_name, py_text)
|
97 | 98 |
|
98 | 99 |
pkg, base_type = genmsg.package_resource_name(current_type)
|
99 | 100 |
gen_name = _gen_dyn_name(pkg, base_type)
|