From 5e6d36f9d7ee7892cacccac3d9a3c97c5ab123ec Mon Sep 17 00:00:00 2001 From: Victor Uriarte Date: Sun, 5 Jun 2016 15:36:49 -0700 Subject: update serializerunicode --- sqlparse/filters/others.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sqlparse') 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) -- cgit v1.2.1