| summaryrefslogtreecommitdiff |
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-08-25 23:39:06 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2020-08-25 23:39:06 +0200 |
| commit | a42ff0878d5862a598618cf6d06e89b9176f0914 (patch) | |
| tree | 07f3881b3f717f2cb9c092725b6fee53c3d853f5 | |
| parent | 9e6cfceaaca4c279432c7bc17d49d3ed354d6b8f (diff) | |
boolean -> bool.
| -rw-r--r-- | tonkadur.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tonkadur.py b/tonkadur.py index 8c0dee1..0bfe8d6 100644 --- a/tonkadur.py +++ b/tonkadur.py @@ -5,7 +5,7 @@ import random class Tonkadur: def generate_instance_of (self, typedef): - if (typedef['category'] == "boolean"): + if (typedef['category'] == "bool"): return False elif (typedef['category'] == "float"): return 0.0 @@ -86,7 +86,7 @@ class Tonkadur: return str(content) elif (target_type == "float"): return float(content) - elif (target_type == "boolean"): + elif (target_type == "bool"): if (origin_type == "string"): return (content == "true") elif (origin_type == "int"): @@ -104,7 +104,7 @@ class Tonkadur: return content elif (target_type == "float"): return float(content) - elif (target_type == "boolean"): + elif (target_type == "bool"): return (content == "true") elif (target_type == "int"): return int(content) |


