Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarion <marion.zepf@gmail.com>2013-07-25 16:18:16 (GMT)
committer Marion <marion.zepf@gmail.com>2013-07-25 16:18:16 (GMT)
commita550de5d8b3041271e498fbffb2e2c018f56cfe8 (patch)
treef9cbe670d845eb742e79c194e1e715d3b32b0482
parentacb61a37f56038c51f88e7cf7029a7295c307eb5 (diff)
use the value '%nothing%' only in talogo, and None elsewhere
-rw-r--r--TurtleArt/tablock.py2
-rw-r--r--TurtleArt/talogo.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py
index e878a46..be1c718 100644
--- a/TurtleArt/tablock.py
+++ b/TurtleArt/tablock.py
@@ -310,7 +310,7 @@ class Block:
elif self.name in media_blocks_dictionary:
return '#smedia_' + self.name.upper()
else:
- return '%nothing%'
+ return None
def highlight(self):
""" We may want to highlight a block... """
diff --git a/TurtleArt/talogo.py b/TurtleArt/talogo.py
index c6991bd..3e9b089 100644
--- a/TurtleArt/talogo.py
+++ b/TurtleArt/talogo.py
@@ -289,7 +289,7 @@ class LogoCode:
code.append(blk.primitive) # Hidden block
elif blk.is_value_block(): # Extract the value from content blocks.
value = blk.get_value()
- if value == '%nothing%':
+ if value is None:
return ['%nothing%']
else:
code.append(value)