From 9eb038542de55f5c7f9f70e64db6d0d905715627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Wed, 10 Oct 2012 20:51:48 +0200 Subject: [PATCH] $name=value$ in .pony files support bug fix --- ponysay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ponysay.py b/ponysay.py index 85e4cbd5..f968619a 100755 --- a/ponysay.py +++ b/ponysay.py @@ -1304,8 +1304,8 @@ class Backend(): if c == '$': if dollar is not None: if '=' in dollar: - name = dollar[:find('=')] - value = dollar[find('=') + 1:] + name = dollar[:dollar.find('=')] + value = dollar[dollar.find('=') + 1:] variables[name] = value elif not dollar.startswith('balloon'): data = variables[dollar].replace('$', '$$')