From 9eb038542de55f5c7f9f70e64db6d0d905715627 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 10 Oct 2012 20:51:48 +0200 Subject: $name=value$ in .pony files support bug fix --- ponysay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ponysay.py') diff --git a/ponysay.py b/ponysay.py index 85e4cbd..f968619 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('$', '$$') -- cgit