mirror of
https://github.com/django/django.git
synced 2025-07-24 21:54:14 +00:00
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
This commit is contained in:
parent
bef891399e
commit
5ceed0a053
46 changed files with 120 additions and 124 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue