summaryrefslogtreecommitdiff
path: root/sqlparse/utils.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2020-09-13 08:54:12 +0200
committerGitHub <noreply@github.com>2020-09-13 08:54:12 +0200
commit6cb3821bf3b048c7b4182c3d87432c433a5f1a57 (patch)
tree2a3849c872dd7cbcda0d92323811394049ca03a5 /sqlparse/utils.py
parentdb4a9f49286b13a4e9deb810645dd5fc1400b804 (diff)
parent686bf6d3c5b2598952a752e708e5d0419fa64781 (diff)
downloadsqlparse-6cb3821bf3b048c7b4182c3d87432c433a5f1a57.tar.gz
Merge branch 'master' into w503
Diffstat (limited to 'sqlparse/utils.py')
-rw-r--r--sqlparse/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sqlparse/utils.py b/sqlparse/utils.py
index 3283274..265378b 100644
--- a/sqlparse/utils.py
+++ b/sqlparse/utils.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
#
# Copyright (C) 2009-2018 the sqlparse authors and contributors
# <see AUTHORS file>
@@ -10,7 +9,6 @@ import itertools
import re
from collections import deque
from contextlib import contextmanager
-from sqlparse.compat import text_type
# This regular expression replaces the home-cooked parser that was here before.
# It is much faster, but requires an extra post-processing step to get the
@@ -40,7 +38,7 @@ def split_unquoted_newlines(stmt):
Unlike str.splitlines(), this will ignore CR/LF/CR+LF if the requisite
character is inside of a string."""
- text = text_type(stmt)
+ text = str(stmt)
lines = SPLIT_REGEX.split(text)
outputlines = ['']
for line in lines: