mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Fixed a bunch of spurious imports, typos, and other small errors turned up by a pass through PyFlakes. This covers about the first third of the errors.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e9a236d86c
commit
17d0bd1512
25 changed files with 9 additions and 35 deletions
|
@ -40,7 +40,7 @@ class MysqlDebugWrapper:
|
|||
def executemany(self, sql, param_list):
|
||||
try:
|
||||
return self.cursor.executemany(sql, param_list)
|
||||
except Database.Warning:
|
||||
except Database.Warning, w:
|
||||
self.cursor.execute("SHOW WARNINGS")
|
||||
raise Database.Warning, "%s: %s" % (w, self.cursor.fetchall())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue