summaryrefslogtreecommitdiff
path: root/django/db/backends/postgresql/operations.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-02-07 12:05:47 -0500
committerTim Graham <timograham@gmail.com>2017-02-09 09:03:47 -0500
commit500532c95db40b0b24654be7bb0d76b66b022bd5 (patch)
tree761766d7138652703e566ac9c96960a265f036ff /django/db/backends/postgresql/operations.py
parent21f13ff5b3d5a42d62f38398c010efcdce30dad7 (diff)
downloaddjango-500532c95db40b0b24654be7bb0d76b66b022bd5.tar.gz
Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
-rw-r--r--django/db/backends/postgresql/operations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py
index fde02cbb78..8891612074 100644
--- a/django/db/backends/postgresql/operations.py
+++ b/django/db/backends/postgresql/operations.py
@@ -224,7 +224,7 @@ class DatabaseOperations(BaseDatabaseOperations):
# http://initd.org/psycopg/docs/cursor.html#cursor.query
# The query attribute is a Psycopg extension to the DB API 2.0.
if cursor.query is not None:
- return cursor.query.decode('utf-8')
+ return cursor.query.decode()
return None
def return_insert_id(self):