mirror of
https://github.com/django/django.git
synced 2025-10-28 18:43:19 +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
|
|
@ -233,7 +233,7 @@ def javascript_catalog(request, domain='djangojs', packages=None):
|
|||
pdict[k[0]] = max(k[1], pdict[k[0]])
|
||||
csrc.append("catalog['%s'][%d] = '%s';\n" % (javascript_quote(k[0]), k[1], javascript_quote(v)))
|
||||
else:
|
||||
raise TypeError, k
|
||||
raise TypeError(k)
|
||||
csrc.sort()
|
||||
for k, v in pdict.items():
|
||||
src.append("catalog['%s'] = [%s];\n" % (javascript_quote(k), ','.join(["''"]*(v+1))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue