summaryrefslogtreecommitdiff
path: root/extras/appengine/sqlformat/legacy.py
diff options
context:
space:
mode:
Diffstat (limited to 'extras/appengine/sqlformat/legacy.py')
-rw-r--r--extras/appengine/sqlformat/legacy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/appengine/sqlformat/legacy.py b/extras/appengine/sqlformat/legacy.py
index bf137fb..9d53479 100644
--- a/extras/appengine/sqlformat/legacy.py
+++ b/extras/appengine/sqlformat/legacy.py
@@ -105,7 +105,7 @@ def _get_examples():
def _get_sql(data, files=None):
sql = None
if files is not None and 'datafile' in files:
- sql = files['datafile'].read()
+ sql = files['datafile'].read().decode('utf-8')
if not sql:
sql = data.get('data')
return sql or ''