mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 08:56:34 +03:00
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:
parent
9e15f54fe8
commit
d5d6a1f4c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user