summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2015-12-01 23:00:53 -0800
committerrockon999 <rockon999@users.noreply.github.com>2018-08-06 02:51:15 -0500
commitaad9d83e58c7ca3e6a4df983c7124664b1985b03 (patch)
tree74aaa46b645d1a22df4bbc1e3642845007d961c7
parent0aeaf6e39890699cdedeace43378f681b243528d (diff)
downloadgobject-introspection-aad9d83e58c7ca3e6a4df983c7124664b1985b03.tar.gz
transformer: Strip whitespace from filter commands
On OS X, the output of sed as reported back to Python has a newline at the end. It seems like a good idea to strip whitespace from the symbol and identifier filter commands anyhow, so strip() the result. https://bugzilla.gnome.org/show_bug.cgi?id=752468
-rw-r--r--giscanner/transformer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 1a27aa3c..c3187e82 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -262,6 +262,7 @@ currently-scanned namespace is first."""
stderr=subprocess.PIPE)
_name = name
proc_name, err = proc.communicate(name.encode())
+ proc_name = proc_name.strip()
if proc.returncode:
raise ValueError('filter: %r exited: %d with error: %s' %
(self._symbol_filter_cmd, proc.returncode, err))