Enable by default the range typecasters

Otherwise it would have been enabled importing psycopg2.extras,
which is a surprising behaviour.
This commit is contained in:
Daniele Varrazzo 2013-04-07 02:37:55 +01:00
parent 9e15f54fe8
commit d5d6a1f4c7

View File

@ -162,6 +162,10 @@ except ImportError:
del register_default_json
# Create default Range typecasters
from psycopg2. _range import Range
del Range
# Add the "cleaned" version of the encodings to the key.
# When the encoding is set its name is cleaned up from - and _ and turned
# uppercase, so an encoding not respecting these rules wouldn't be found in the