summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/db/backends/oracle/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py
index 22137115fa..d25642a62a 100644
--- a/django/db/backends/oracle/base.py
+++ b/django/db/backends/oracle/base.py
@@ -76,7 +76,7 @@ class FormatStylePlaceholderCursor(Database.Cursor):
# cx can not execute the query with the closing ';'
if query.endswith(';'):
- query = query[0:len(query)-1]
+ query = query[:-1]
return Database.Cursor.execute(self, query, params)
def executemany(self, query, params=None):