diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 18:36:20 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2010-01-10 18:36:20 +0000 |
| commit | 5ceed0a05388079118319940acdb2abe4ee01de6 (patch) | |
| tree | c158b29638a509bef59fbbff164faf2749d35fe4 /django/forms | |
| parent | bef891399ec278390ee148b0bb87d4c4140fc4c6 (diff) | |
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
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/widgets.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
