[Python-modules-commits] [django-reversion] 01/05: Convert from git-dpm to patches unapplied format

Michael Fladischer fladi at moszumanska.debian.org
Thu Aug 31 19:33:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch debian/master
in repository django-reversion.

commit cb2fbc5f81538980f7663096ec956617650cc34f
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Thu Aug 31 21:19:29 2017 +0200

    Convert from git-dpm to patches unapplied format
---
 debian/.git-dpm                                | 11 -----------
 debian/gbp.conf                                |  2 ++
 reversion/locale/ar/LC_MESSAGES/django.po      |  2 +-
 reversion/locale/cs/LC_MESSAGES/django.po      |  1 -
 reversion/locale/da/LC_MESSAGES/django.po      |  2 +-
 reversion/locale/de/LC_MESSAGES/django.po      |  1 -
 reversion/locale/he/LC_MESSAGES/django.po      |  1 -
 reversion/locale/it/LC_MESSAGES/django.po      |  1 -
 reversion/locale/nb/LC_MESSAGES/django.po      |  2 +-
 reversion/locale/pt_BR/LC_MESSAGES/django.po   |  1 -
 reversion/locale/ru/LC_MESSAGES/django.po      |  1 -
 reversion/locale/sk/LC_MESSAGES/django.po      |  2 +-
 reversion/locale/sv/LC_MESSAGES/django.po      |  2 +-
 reversion/locale/zh_CN/LC_MESSAGES/django.po   |  2 +-
 reversion/locale/zh_Hans/LC_MESSAGES/django.po |  2 +-
 tests/test_app/tests/test_api.py               | 15 --------------
 tests/test_app/tests/test_commands.py          | 18 -----------------
 tests/test_app/tests/test_models.py            | 22 ---------------------
 tests/test_project/settings.py                 | 27 ++++++--------------------
 19 files changed, 15 insertions(+), 100 deletions(-)

diff --git a/debian/.git-dpm b/debian/.git-dpm
deleted file mode 100644
index 647549d..0000000
--- a/debian/.git-dpm
+++ /dev/null
@@ -1,11 +0,0 @@
-# see git-dpm(1) from git-dpm package
-ec9955ac0791b9810921d6be99a39a6f73f165d6
-ec9955ac0791b9810921d6be99a39a6f73f165d6
-181bad9c2b1870ecb6d5cffdb213051ff145bc19
-181bad9c2b1870ecb6d5cffdb213051ff145bc19
-django-reversion_2.0.9.orig.tar.gz
-e4b064d8d17e340eff261667b2cf87a813e3042a
-63357
-debianTag="debian/%e%v"
-patchedTag="patched/%e%v"
-upstreamTag="upstream/%e%u"
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..3879982
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+debian-branch=debian/master
diff --git a/reversion/locale/ar/LC_MESSAGES/django.po b/reversion/locale/ar/LC_MESSAGES/django.po
index 7213596..07ebf72 100644
--- a/reversion/locale/ar/LC_MESSAGES/django.po
+++ b/reversion/locale/ar/LC_MESSAGES/django.po
@@ -11,7 +11,7 @@ msgstr ""
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: ar\n"
+"Language: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/cs/LC_MESSAGES/django.po b/reversion/locale/cs/LC_MESSAGES/django.po
index 95497d5..94bc354 100644
--- a/reversion/locale/cs/LC_MESSAGES/django.po
+++ b/reversion/locale/cs/LC_MESSAGES/django.po
@@ -11,7 +11,6 @@ msgstr ""
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: cs\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/da/LC_MESSAGES/django.po b/reversion/locale/da/LC_MESSAGES/django.po
index bcae256..074b908 100644
--- a/reversion/locale/da/LC_MESSAGES/django.po
+++ b/reversion/locale/da/LC_MESSAGES/django.po
@@ -12,7 +12,7 @@ msgstr ""
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: da\n"
+"Language: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/de/LC_MESSAGES/django.po b/reversion/locale/de/LC_MESSAGES/django.po
index adaed4e..dee2e8f 100644
--- a/reversion/locale/de/LC_MESSAGES/django.po
+++ b/reversion/locale/de/LC_MESSAGES/django.po
@@ -11,7 +11,6 @@ msgstr ""
 "PO-Revision-Date: 2009-02-03 08:41+0100\n"
 "Last-Translator: Jannis Leidel <jannis at leidel.info>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: de\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/he/LC_MESSAGES/django.po b/reversion/locale/he/LC_MESSAGES/django.po
index a346736..3624f02 100644
--- a/reversion/locale/he/LC_MESSAGES/django.po
+++ b/reversion/locale/he/LC_MESSAGES/django.po
@@ -11,7 +11,6 @@ msgstr ""
 "PO-Revision-Date: 2009-12-10 10:45+0200\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: he\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/it/LC_MESSAGES/django.po b/reversion/locale/it/LC_MESSAGES/django.po
index 545ee5f..13a1526 100644
--- a/reversion/locale/it/LC_MESSAGES/django.po
+++ b/reversion/locale/it/LC_MESSAGES/django.po
@@ -11,7 +11,6 @@ msgstr ""
 "PO-Revision-Date: 2009-08-29 13:44+0100\n"
 "Last-Translator: Marco Beri <marcoberi at gmail.com>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: it\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/nb/LC_MESSAGES/django.po b/reversion/locale/nb/LC_MESSAGES/django.po
index 16a6aae..5de5ded 100644
--- a/reversion/locale/nb/LC_MESSAGES/django.po
+++ b/reversion/locale/nb/LC_MESSAGES/django.po
@@ -10,7 +10,7 @@ msgstr ""
 "PO-Revision-Date: 2011-10-17 10:17+0100\n"
 "Last-Translator: Sindre Sorhus <sindresorhus at gmail.com>\n"
 "Language-Team: \n"
-"Language: nb\n"
+"Language: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/pt_BR/LC_MESSAGES/django.po b/reversion/locale/pt_BR/LC_MESSAGES/django.po
index f5319d2..76c4679 100644
--- a/reversion/locale/pt_BR/LC_MESSAGES/django.po
+++ b/reversion/locale/pt_BR/LC_MESSAGES/django.po
@@ -11,7 +11,6 @@ msgstr ""
 "PO-Revision-Date: 2009-08-29 13:44+0100\n"
 "Last-Translator: Partec <beto at tangerinalab.com>\n"
 "Language-Team: Tangerina Lab <beto at tangerinalab.com>\n"
-"Language: pt_BR\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/ru/LC_MESSAGES/django.po b/reversion/locale/ru/LC_MESSAGES/django.po
index 8757d28..68f15ca 100644
--- a/reversion/locale/ru/LC_MESSAGES/django.po
+++ b/reversion/locale/ru/LC_MESSAGES/django.po
@@ -11,7 +11,6 @@ msgstr ""
 "PO-Revision-Date: 2009-10-14 22:21+0300\n"
 "Last-Translator: Alexander Yakovlev <ayakovlev at rambler.ru>\n"
 "Language-Team: Russian <ru at li.org>\n"
-"Language: ru\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/sk/LC_MESSAGES/django.po b/reversion/locale/sk/LC_MESSAGES/django.po
index a1b7d28..f6750fb 100644
--- a/reversion/locale/sk/LC_MESSAGES/django.po
+++ b/reversion/locale/sk/LC_MESSAGES/django.po
@@ -12,7 +12,7 @@ msgstr ""
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: Juraj Bubniak <translations at jbub.eu>\n"
 "Language-Team: Slovak <LL at li.org>\n"
-"Language: sk\n"
+"Language: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/sv/LC_MESSAGES/django.po b/reversion/locale/sv/LC_MESSAGES/django.po
index 44d7955..9e696fe 100644
--- a/reversion/locale/sv/LC_MESSAGES/django.po
+++ b/reversion/locale/sv/LC_MESSAGES/django.po
@@ -12,7 +12,7 @@ msgstr ""
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: sv\n"
+"Language: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/zh_CN/LC_MESSAGES/django.po b/reversion/locale/zh_CN/LC_MESSAGES/django.po
index 567e0b8..75e7231 100644
--- a/reversion/locale/zh_CN/LC_MESSAGES/django.po
+++ b/reversion/locale/zh_CN/LC_MESSAGES/django.po
@@ -12,7 +12,7 @@ msgstr ""
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: zh_CN\n"
+"Language: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/reversion/locale/zh_Hans/LC_MESSAGES/django.po b/reversion/locale/zh_Hans/LC_MESSAGES/django.po
index 284f980..75e7231 100644
--- a/reversion/locale/zh_Hans/LC_MESSAGES/django.po
+++ b/reversion/locale/zh_Hans/LC_MESSAGES/django.po
@@ -12,7 +12,7 @@ msgstr ""
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
-"Language: zh_Hans\n"
+"Language: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
diff --git a/tests/test_app/tests/test_api.py b/tests/test_app/tests/test_api.py
index 2b8c7bb..24201a2 100644
--- a/tests/test_app/tests/test_api.py
+++ b/tests/test_app/tests/test_api.py
@@ -1,4 +1,3 @@
-import unittest
 from datetime import timedelta
 from django.contrib.auth.models import User
 from django.db import models
@@ -13,16 +12,6 @@ try:
 except ImportError:
     from mock import MagicMock
 
-try:
-    import psycopg2
-except ImportError:
-    psycopg2 = None
-
-try:
-    import MySQLdb
-except ImportError:
-    MySQLdb = None
-
 
 class SaveTest(TestModelMixin, TestBase):
 
@@ -170,8 +159,6 @@ class CreateRevisionManageManuallyTest(TestModelMixin, TestBase):
 
 class CreateRevisionDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
-    @unittest.skipIf(not MySQLdb, "MySQLdb not installed")
     def testCreateRevisionMultiDb(self):
         with reversion.create_revision(using="mysql"), reversion.create_revision(using="postgres"):
             obj = TestModel.objects.create()
@@ -332,8 +319,6 @@ class AddMetaTest(TestModelMixin, TestBase):
         with self.assertRaises(reversion.RevisionManagementError):
             reversion.add_meta(TestMeta, name="meta v1")
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
-    @unittest.skipIf(not MySQLdb, "MySQLdb not installed")
     def testAddMetaMultDb(self):
         with reversion.create_revision(using="mysql"), reversion.create_revision(using="postgres"):
             obj = TestModel.objects.create()
diff --git a/tests/test_app/tests/test_commands.py b/tests/test_app/tests/test_commands.py
index 0cc406f..bb950ad 100644
--- a/tests/test_app/tests/test_commands.py
+++ b/tests/test_app/tests/test_commands.py
@@ -1,4 +1,3 @@
-import unittest
 from datetime import timedelta
 from django.core.management import CommandError
 from django.utils import timezone
@@ -6,16 +5,6 @@ import reversion
 from test_app.models import TestModel
 from test_app.tests.base import TestBase, TestModelMixin
 
-try:
-    import psycopg2
-except ImportError:
-    psycopg2 = None
-
-try:
-    import MySQLdb
-except ImportError:
-    MySQLdb = None
-
 
 class CreateInitialRevisionsTest(TestModelMixin, TestBase):
 
@@ -63,14 +52,12 @@ class CreateInitialRevisionsAppLabelTest(TestModelMixin, TestBase):
 
 class CreateInitialRevisionsDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testCreateInitialRevisionsDb(self):
         obj = TestModel.objects.create()
         self.callCommand("createinitialrevisions", using="postgres")
         self.assertNoRevision()
         self.assertSingleRevision((obj,), comment="Initial version.", using="postgres")
 
-    @unittest.skipIf(not MySQLdb, "MySQLdb not installed")
     def testCreateInitialRevisionsDbMySql(self):
         obj = TestModel.objects.create()
         self.callCommand("createinitialrevisions", using="mysql")
@@ -80,7 +67,6 @@ class CreateInitialRevisionsDbTest(TestModelMixin, TestBase):
 
 class CreateInitialRevisionsModelDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testCreateInitialRevisionsModelDb(self):
         obj = TestModel.objects.db_manager("postgres").create()
         self.callCommand("createinitialrevisions", model_db="postgres")
@@ -139,21 +125,18 @@ class DeleteRevisionsAppLabelTest(TestModelMixin, TestBase):
 
 class DeleteRevisionsDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testDeleteRevisionsDb(self):
         with reversion.create_revision(using="postgres"):
             TestModel.objects.create()
         self.callCommand("deleterevisions", using="postgres")
         self.assertNoRevision(using="postgres")
 
-    @unittest.skipIf(not MySQLdb, "MySQLdb not installed")
     def testDeleteRevisionsDbMySql(self):
         with reversion.create_revision(using="mysql"):
             TestModel.objects.create()
         self.callCommand("deleterevisions", using="mysql")
         self.assertNoRevision(using="mysql")
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testDeleteRevisionsDbNoMatch(self):
         with reversion.create_revision():
             obj = TestModel.objects.create()
@@ -163,7 +146,6 @@ class DeleteRevisionsDbTest(TestModelMixin, TestBase):
 
 class DeleteRevisionsModelDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testDeleteRevisionsModelDb(self):
         with reversion.create_revision():
             TestModel.objects.db_manager("postgres").create()
diff --git a/tests/test_app/tests/test_models.py b/tests/test_app/tests/test_models.py
index c278385..f3f13c7 100644
--- a/tests/test_app/tests/test_models.py
+++ b/tests/test_app/tests/test_models.py
@@ -1,20 +1,9 @@
-import unittest
 from django.utils.encoding import force_text
 import reversion
 from reversion.models import Version
 from test_app.models import TestModel, TestModelRelated, TestModelParent
 from test_app.tests.base import TestBase, TestModelMixin, TestModelParentMixin
 
-try:
-    import psycopg2
-except ImportError:
-    psycopg2 = None
-
-try:
-    import MySQLdb
-except ImportError:
-    MySQLdb = None
-
 
 class GetForModelTest(TestModelMixin, TestBase):
 
@@ -26,13 +15,11 @@ class GetForModelTest(TestModelMixin, TestBase):
 
 class GetForModelDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testGetForModelDb(self):
         with reversion.create_revision(using="postgres"):
             obj = TestModel.objects.create()
         self.assertEqual(Version.objects.using("postgres").get_for_model(obj.__class__).count(), 1)
 
-    @unittest.skipIf(not MySQLdb, "MySQLdb not installed")
     def testGetForModelDbMySql(self):
         with reversion.create_revision(using="mysql"):
             obj = TestModel.objects.create()
@@ -70,14 +57,12 @@ class GetForObjectTest(TestModelMixin, TestBase):
 
 class GetForObjectDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testGetForObjectDb(self):
         with reversion.create_revision(using="postgres"):
             obj = TestModel.objects.create()
         self.assertEqual(Version.objects.get_for_object(obj).count(), 0)
         self.assertEqual(Version.objects.using("postgres").get_for_object(obj).count(), 1)
 
-    @unittest.skipIf(not MySQLdb, "MySQLdb not installed")
     def testGetForObjectDbMySql(self):
         with reversion.create_revision(using="mysql"):
             obj = TestModel.objects.create()
@@ -87,7 +72,6 @@ class GetForObjectDbTest(TestModelMixin, TestBase):
 
 class GetForObjectModelDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testGetForObjectModelDb(self):
         with reversion.create_revision():
             obj = TestModel.objects.db_manager("postgres").create()
@@ -144,7 +128,6 @@ class GetForObjectReferenceTest(TestModelMixin, TestBase):
 
 class GetForObjectReferenceDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testGetForObjectReferenceModelDb(self):
         with reversion.create_revision(using="postgres"):
             obj = TestModel.objects.create()
@@ -154,14 +137,12 @@ class GetForObjectReferenceDbTest(TestModelMixin, TestBase):
 
 class GetForObjectReferenceModelDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testGetForObjectReferenceModelDb(self):
         with reversion.create_revision():
             obj = TestModel.objects.db_manager("postgres").create()
         self.assertEqual(Version.objects.get_for_object_reference(TestModel, obj.pk).count(), 0)
         self.assertEqual(Version.objects.get_for_object_reference(TestModel, obj.pk, model_db="postgres").count(), 1)
 
-    @unittest.skipIf(not MySQLdb, "MySQLdb not installed")
     def testGetForObjectReferenceModelDbMySql(self):
         with reversion.create_revision():
             obj = TestModel.objects.db_manager("mysql").create()
@@ -199,7 +180,6 @@ class GetDeletedTest(TestModelMixin, TestBase):
 
 class GetDeletedDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testGetDeletedDb(self):
         with reversion.create_revision(using="postgres"):
             obj = TestModel.objects.create()
@@ -207,7 +187,6 @@ class GetDeletedDbTest(TestModelMixin, TestBase):
         self.assertEqual(Version.objects.get_deleted(TestModel).count(), 0)
         self.assertEqual(Version.objects.using("postgres").get_deleted(TestModel).count(), 1)
 
-    @unittest.skipIf(not MySQLdb, "MySQLdb not installed")
     def testGetDeletedDbMySql(self):
         with reversion.create_revision(using="mysql"):
             obj = TestModel.objects.create()
@@ -218,7 +197,6 @@ class GetDeletedDbTest(TestModelMixin, TestBase):
 
 class GetDeletedModelDbTest(TestModelMixin, TestBase):
 
-    @unittest.skipIf(not psycopg2, "psycopg2 not installed")
     def testGetDeletedModelDb(self):
         with reversion.create_revision():
             obj = TestModel.objects.db_manager("postgres").create()
diff --git a/tests/test_project/settings.py b/tests/test_project/settings.py
index 46f073e..395a30e 100644
--- a/tests/test_project/settings.py
+++ b/tests/test_project/settings.py
@@ -13,17 +13,6 @@ https://docs.djangoproject.com/en/dev/ref/settings/
 import os
 import getpass
 
-try:
-    import psycopg2
-except ImportError:
-    psycopg2 = None
-
-try:
-    import MySQLdb
-except ImportError:
-    MySQLdb = None
-
-
 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 
@@ -92,24 +81,20 @@ DATABASES = {
     "default": {
         "ENGINE": "django.db.backends.sqlite3",
         "NAME": os.path.join(BASE_DIR, "db.sqlite3"),
-    }
-}
-
-if psycopg2:
-    DATABASES["postgres"] = {
+    },
+    "postgres": {
         "ENGINE": "django.db.backends.postgresql_psycopg2",
         "NAME": os.environ.get("DJANGO_DATABASE_NAME_POSTGRES", "test_project"),
         "USER": os.environ.get("DJANGO_DATABASE_USER_POSTGRES", getpass.getuser()),
         "PASSWORD": os.environ.get("DJANGO_DATABASE_PASSWORD_POSTGRES", ""),
-    }
-
-if MySQLdb:
-    DATABASES["mysql"] = {
+    },
+    "mysql": {
         "ENGINE": "django.db.backends.mysql",
         "NAME": os.environ.get("DJANGO_DATABASE_NAME_MYSQL", "test_project"),
         "USER": os.environ.get("DJANGO_DATABASE_USER_MYSQL", getpass.getuser()),
         "PASSWORD": os.environ.get("DJANGO_DATABASE_PASSWORD_MYSQL", ""),
-    }
+    },
+}
 
 
 # Password validation

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-reversion.git



More information about the Python-modules-commits mailing list