Download pool/shard003/Python/0027069_base.py from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/Python/0027069_base.py
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard003/Python/0027069_base.py
-
curl -L -o 0027069_base.py https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/Python/0027069_base.py
1.04 kB
| from django.db.backends.mysql.base import DatabaseCreation as MySQLCreation | |
| from django.db.backends.mysql.base import DatabaseOperations as MySQLOperations | |
| from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper | |
| from django.db.backends.mysql.base import DatabaseIntrospection as MySQLIntrospection | |
| try: | |
| import MySQLdb as Database | |
| except ImportError, e: | |
| from django.core.exceptions import ImproperlyConfigured | |
| raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) | |
| class DatabaseOperations(MySQLOperations): | |
| compiler_module = "autotest.frontend.db.backends.afe.compiler" | |
| class DatabaseWrapper(MySQLDatabaseWrapper): | |
| def __init__(self, *args, **kwargs): | |
| super(DatabaseWrapper, self).__init__(*args, **kwargs) | |
| self.creation = MySQLCreation(self) | |
| try: | |
| self.ops = DatabaseOperations() | |
| except TypeError: | |
| self.ops = DatabaseOperations(connection=kwargs.get('connection')) | |
| self.introspection = MySQLIntrospection(self) | |