diff options
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 5cef5d929..3bd7e62d5 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -992,6 +992,7 @@ E.g.:: from collections import defaultdict import datetime as dt import re +from uuid import UUID as _python_UUID from . import array as _array from . import hstore as _hstore @@ -1023,12 +1024,6 @@ from ...types import TEXT from ...types import VARCHAR -try: - from uuid import UUID as _python_UUID # noqa -except ImportError: - _python_UUID = None - - IDX_USING = re.compile(r"^(?:btree|hash|gist|gin|[\w_]+)$", re.I) AUTOCOMMIT_REGEXP = re.compile( @@ -1302,11 +1297,6 @@ class UUID(sqltypes.TypeEngine): DBAPI. """ - if as_uuid and _python_UUID is None: - raise NotImplementedError( - "This version of Python does not support " - "the native UUID type." - ) self.as_uuid = as_uuid def bind_processor(self, dialect): |