[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore - zopedublincore.py:1.3

Guido van Rossum guido@python.org
Wed, 08 Jan 2003 17:02:09 -0500


> -            raise TypeError("Element must be %s", datetimetz)
> +            raise TypeError("Element must be %s", datetime)

(Not for Tim but for for original author)

What does

  raise TypeError("Element must be %s", datetime)

do?  AFAICT it will print

  TypeError: ('Element must be %s", <type 'datetime'>)

Did you mean

  raise TypeError("Element must be datetime")

or is there some magic elsewhere?

--Guido van Rossum (home page: http://www.python.org/~guido/)