equal
deleted
inserted
replaced
1 import datetime |
1 import datetime |
|
2 import decimal |
2 from time import time |
3 from time import time |
3 |
4 |
4 from django.utils.hashcompat import md5_constructor |
5 from django.utils.hashcompat import md5_constructor |
5 |
|
6 try: |
|
7 import decimal |
|
8 except ImportError: |
|
9 from django.utils import _decimal as decimal # for Python 2.3 |
|
10 |
6 |
11 class CursorDebugWrapper(object): |
7 class CursorDebugWrapper(object): |
12 def __init__(self, cursor, db): |
8 def __init__(self, cursor, db): |
13 self.cursor = cursor |
9 self.cursor = cursor |
14 self.db = db # Instance of a BaseDatabaseWrapper subclass |
10 self.db = db # Instance of a BaseDatabaseWrapper subclass |