aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-10-10 20:51:48 +0200
committerMattias Andrée <maandree@operamail.com>2012-10-10 20:51:48 +0200
commit9eb038542de55f5c7f9f70e64db6d0d905715627 (patch)
treef42b65596bce74dd32100857a46f7f204369f670
parenteadd55dcb77c5fadb0de203da211af3eae7751c7 (diff)
downloadponysay-9eb038542de55f5c7f9f70e64db6d0d905715627.tar.gz
ponysay-9eb038542de55f5c7f9f70e64db6d0d905715627.tar.bz2
ponysay-9eb038542de55f5c7f9f70e64db6d0d905715627.zip
$name=value$ in .pony files support bug fix
-rwxr-xr-xponysay.py4
1 files changed, 2 insertions, 2 deletions
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('$', '$$')