# HG changeset patch # User kylev # Date 1235433164 0 # Node ID 6e31278d3433cc4abddda64b5b3ac2a6bc0468a7 # Parent 4bfc4e612de012b0af3d377204d810a0b5adf822 There's no good reason to delay imports when the module is (1) useless without it or (2) you do the same late import more than once. diff -r 4bfc4e612de0 -r 6e31278d3433 MySQLdb/cursors.py --- a/MySQLdb/cursors.py Mon Feb 23 23:46:37 2009 +0000 +++ b/MySQLdb/cursors.py Mon Feb 23 23:52:44 2009 +0000 @@ -11,6 +11,8 @@ __author__ = "$Author$"[9:-2] import re +import sys +import weakref INSERT_VALUES = re.compile(r"\svalues\s*" r"(\(((?