[ros-genpy] 02/03: Imported Upstream version 0.5.7

Riku Voipio riku at moszumanska.debian.org
Tue Nov 10 09:31:52 UTC 2015


This is an automated email from the git hooks/post-receive script.

riku pushed a commit to branch master
in repository ros-genpy.

commit 6a9666d15b7f64ad6e4bd6e054a5c10e18406e2f
Author: Riku Voipio <riku.voipio at linaro.org>
Date:   Tue Nov 10 11:27:45 2015 +0200

    Imported Upstream version 0.5.7
---
 CHANGELOG.rst          | 4 ++++
 package.xml            | 2 +-
 src/genpy/generator.py | 1 +
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 6ab5ca2..b70e0f0 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,10 @@
 Changelog for package genpy
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
+0.5.7 (2015-11-09)
+------------------
+* add line about encoding to generated Python files (`#41 <https://github.com/ros/genpy/issues/41>`_)
+
 0.5.6 (2015-10-12)
 ------------------
 * fix handling of dynamic message classes with names containing other message classes as substrings (`#40 <https://github.com/ros/genpy/pull/40>`_)
diff --git a/package.xml b/package.xml
index 89edb4c..8ebcfdc 100644
--- a/package.xml
+++ b/package.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <package>
   <name>genpy</name>
-  <version>0.5.6</version>
+  <version>0.5.7</version>
   <description>Python ROS message and service generators.</description>
   <maintainer email="dthomas at osrfoundation.org">Dirk Thomas</maintainer>
   <license>BSD</license>
diff --git a/src/genpy/generator.py b/src/genpy/generator.py
index 9d8a421..08d2e87 100644
--- a/src/genpy/generator.py
+++ b/src/genpy/generator.py
@@ -746,6 +746,7 @@ def msg_generator(msg_context, spec, search_path):
     # rewritten to not use globals
     clear_patterns()
 
+    yield '# This Python file uses the following encoding: utf-8'
     yield '"""autogenerated by genpy from %s.msg. Do not edit."""'%spec.full_name
     yield 'import sys'
     yield 'python3 = True if sys.hexversion > 0x03000000 else False'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ros/ros-genpy.git



More information about the debian-science-commits mailing list