diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2020-09-13 08:54:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-13 08:54:12 +0200 |
| commit | 6cb3821bf3b048c7b4182c3d87432c433a5f1a57 (patch) | |
| tree | 2a3849c872dd7cbcda0d92323811394049ca03a5 /sqlparse/__init__.py | |
| parent | db4a9f49286b13a4e9deb810645dd5fc1400b804 (diff) | |
| parent | 686bf6d3c5b2598952a752e708e5d0419fa64781 (diff) | |
| download | sqlparse-6cb3821bf3b048c7b4182c3d87432c433a5f1a57.tar.gz | |
Merge branch 'master' into w503
Diffstat (limited to 'sqlparse/__init__.py')
| -rw-r--r-- | sqlparse/__init__.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sqlparse/__init__.py b/sqlparse/__init__.py index b475061..5dcd982 100644 --- a/sqlparse/__init__.py +++ b/sqlparse/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Copyright (C) 2009-2018 the sqlparse authors and contributors # <see AUTHORS file> @@ -16,7 +15,6 @@ from sqlparse import tokens from sqlparse import filters from sqlparse import formatter -from sqlparse.compat import text_type __version__ = '0.3.2.dev0' __all__ = ['engine', 'filters', 'formatter', 'sql', 'tokens', 'cli'] @@ -58,7 +56,7 @@ def format(sql, encoding=None, **options): options = formatter.validate_options(options) stack = formatter.build_filter_stack(stack, options) stack.postprocess.append(filters.SerializerUnicode()) - return u''.join(stack.run(sql, encoding)) + return ''.join(stack.run(sql, encoding)) def split(sql, encoding=None): @@ -69,4 +67,4 @@ def split(sql, encoding=None): :returns: A list of strings. """ stack = engine.FilterStack() - return [text_type(stmt).strip() for stmt in stack.run(sql, encoding)] + return [str(stmt).strip() for stmt in stack.run(sql, encoding)] |
