From 6816582d800ff6587b02251a7191e4f7aa8c292d Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 24 Apr 2012 11:27:23 +0300 Subject: Handle short string properly. --- node/prepare_build_config.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node') diff --git a/node/prepare_build_config.py b/node/prepare_build_config.py index e275d1e..9bd9188 100755 --- a/node/prepare_build_config.py +++ b/node/prepare_build_config.py @@ -18,6 +18,8 @@ class BuildConfigMismatchException(Exception): def shell_unquote(s): # Primitive implementation, we should + if len(s) < 2: + return s if s[0] == '"' and s[-1] == '"': return s[1:-1] if s[0] == "'" and s[-1] == "'": -- cgit v1.2.3