|
From: <tp...@ke...> - 2011-02-09 11:52:55
|
Module: gst-python Branch: master Commit: 93fd2d4f43ced070fbb1b8a0e4d33d23601957d5 URL: http://cgit.freedesktop.org/gstreamer/gst-python/commit/?id=93fd2d4f43ced070fbb1b8a0e4d33d23601957d5 Author: Arun Raghavan <aru...@co...> Date: Mon Jan 24 18:14:16 2011 +0530 codegen: Handle empty lines in overrides gracefully Without this, having an empty line in an override will cause codegen to unceremoniously choke to death. https://bugzilla.gnome.org/show_bug.cgi?id=640341 --- codegen/override.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/codegen/override.py b/codegen/override.py index fde8f4f..c5932ee 100644 --- a/codegen/override.py +++ b/codegen/override.py @@ -101,6 +101,8 @@ class Overrides: else: line = buffer ; rest = '' words = string.split(line) + if len(words) == 0: + return command = words[0] if (command == 'ignore' or command == 'ignore-' + sys.platform): |