summaryrefslogtreecommitdiff
path: root/MySQLdb/converters.py
diff options
context:
space:
mode:
Diffstat (limited to 'MySQLdb/converters.py')
-rw-r--r--MySQLdb/converters.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/MySQLdb/converters.py b/MySQLdb/converters.py
index 14b1f52..953c4e5 100644
--- a/MySQLdb/converters.py
+++ b/MySQLdb/converters.py
@@ -49,6 +49,11 @@ except ImportError:
import array
try:
+ ArrayType = array.ArrayType
+except AttributeError:
+ ArrayType = array.array
+
+try:
set
except NameError:
from sets import Set as set
@@ -133,7 +138,7 @@ conversions = {
ListType: escape_sequence,
DictType: escape_dict,
InstanceType: Instance2Str,
- array.ArrayType: array2Str,
+ ArrayType: array2Str,
StringType: Thing2Literal, # default
UnicodeType: Unicode2Str,
ObjectType: Instance2Str,