From 32dc3dc0eb910223c33b0b57e76ec9aa5c6899f8 Mon Sep 17 00:00:00 2001 From: Marion Date: Mon, 16 Sep 2013 15:37:43 +0000 Subject: clean up taprimitive and tatype --- (limited to 'TurtleArt/tatype.py') diff --git a/TurtleArt/tatype.py b/TurtleArt/tatype.py index 46c5921..78cbcc3 100644 --- a/TurtleArt/tatype.py +++ b/TurtleArt/tatype.py @@ -21,7 +21,6 @@ """ type system for Primitives and their arguments """ import ast -from gettext import gettext as _ from tablock import Media from taconstants import (Color, CONSTANTS) @@ -43,8 +42,7 @@ class Type(object): if other is None: return False if not isinstance(other, Type): - raise TypeError("cannot compare Type to object of type " + - repr(type(other))) + return False return self.value == other.value def __str__(self): -- cgit v0.9.1