summaryrefslogtreecommitdiff
path: root/sqlparse/utils.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2020-09-13 08:22:57 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2020-09-13 08:22:57 +0200
commitfd2c8e3d42a74f43c1f473628ec033431b27a534 (patch)
tree80bed5e5d91de2cd9854b326d34ddcd3dfce4aed /sqlparse/utils.py
parent44965c2d155c312662ede94cab4b355d4eab6a5c (diff)
parent6a02ed19fa7f5c8dc08f54ff89fbbc4ba8b5bebd (diff)
downloadsqlparse-fd2c8e3d42a74f43c1f473628ec033431b27a534.tar.gz
Merge branch 'jdufresne-py2'
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: