From a42ff0878d5862a598618cf6d06e89b9176f0914 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Tue, 25 Aug 2020 23:39:06 +0200 Subject: boolean -> bool. --- tonkadur.py | 6 +++--- 1 file 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) -- cgit v1.2.3-70-g09d2