From 5ceed0a05388079118319940acdb2abe4ee01de6 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 10 Jan 2010 18:36:20 +0000 Subject: Changed a whole bunch of places to raise exception instances instead of old-style raising exception classes plus a comma. Good for the future Python 3 conversion git-svn-id: http://code.djangoproject.com/svn/django/trunk@12180 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/forms/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/forms') diff --git a/django/forms/widgets.py b/django/forms/widgets.py index d4964b0bc6..8b036bacd2 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -41,7 +41,7 @@ class Media(StrAndUnicode): # Any leftover attributes must be invalid. # if media_attrs != {}: - # raise TypeError, "'class Media' has invalid attribute(s): %s" % ','.join(media_attrs.keys()) + # raise TypeError("'class Media' has invalid attribute(s): %s" % ','.join(media_attrs.keys())) def __unicode__(self): return self.render() -- cgit v1.3