summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2006-11-04 20:47:07 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2006-11-04 20:47:07 +0000
commit4d8a0482c6560fe062cdc8fb757a14bf942eb348 (patch)
tree0cd5fde59d41ee1858277829f78596996dfbf413
parentb543ef9bf1dd4950f348d902b50ab4a5b7af2380 (diff)
[boulder-oracle-sprint] made a small idiomatic change to oracle base.py (thanks, cramm)
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@3977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-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):