summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorVictor Uriarte <victor.m.uriarte@intel.com>2016-06-05 15:36:49 -0700
committerVictor Uriarte <victor.m.uriarte@intel.com>2016-06-09 20:27:18 -0700
commit5e6d36f9d7ee7892cacccac3d9a3c97c5ab123ec (patch)
tree7e2380feeaf3b3d1c636f537f4fbc69ba49f2b5e /sqlparse
parentc43fccfefed0806cca52bea48d232ddf72f842cd (diff)
downloadsqlparse-5e6d36f9d7ee7892cacccac3d9a3c97c5ab123ec.tar.gz
update serializerunicode
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/filters/others.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sqlparse/filters/others.py b/sqlparse/filters/others.py
index 6132f9a..d3af7d6 100644
--- a/sqlparse/filters/others.py
+++ b/sqlparse/filters/others.py
@@ -113,8 +113,8 @@ class SpacesAroundOperatorsFilter(object):
# postprocess
class SerializerUnicode(object):
- def process(self, stmt):
+ @staticmethod
+ def process(stmt):
raw = text_type(stmt)
lines = split_unquoted_newlines(raw)
- res = '\n'.join(line.rstrip() for line in lines)
- return res
+ return '\n'.join(line.rstrip() for line in lines)