summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2012-04-28 11:08:05 -0500
committerBryan Bishop <kanzure@gmail.com>2012-04-28 11:08:05 -0500
commite2cfea359803a1f05caa1186689eaabe28d844e7 (patch)
treed7c8f1c1b7f25363d60a504c9ee09849b2aa988c
parente112ac989871ecb4471133a230accd4414e9f399 (diff)
temporary fix to prevent TextScript from appending @s
original-commit-id: d4508d9beda76be00c79296e88129a5dcfd908d2
-rw-r--r--crystal.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/crystal.py b/crystal.py
index 3786e13..0495395 100644
--- a/crystal.py
+++ b/crystal.py
@@ -725,7 +725,9 @@ class TextScript:
address = self.address
start_address = address
if label == None: label = self.label.name
- commands = self.commands
+ #using deepcopy because otherwise additional @s get appended each time
+ #like to the end of the text for TextScript(0x5cf3a)
+ commands = deepcopy(self.commands)
#apparently this isn't important anymore?
needs_to_begin_with_0 = True
#start with zero please