aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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('$', '$$')