From c67a742e01ee7084ffd6ec0d531b96e343e6a5a5 Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Sat, 3 Nov 2012 12:45:52 +0100 Subject: Move SQLParseError to proper location and start deprecation of sqlparse.SQLParseError. --- sqlparse/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sqlparse/__init__.py') diff --git a/sqlparse/__init__.py b/sqlparse/__init__.py index a380e33..230fd0d 100644 --- a/sqlparse/__init__.py +++ b/sqlparse/__init__.py @@ -9,15 +9,14 @@ __version__ = '0.1.4' -class SQLParseError(Exception): - """Base class for exceptions in this module.""" - - # Setup namespace from sqlparse import engine from sqlparse import filters from sqlparse import formatter +# Deprecated in 0.1.5. Will be removed in 0.2.0 +from sqlparse.exceptions import SQLParseError + def parse(sql): """Parse sql and return a list of statements. -- cgit v1.2.1