]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- remove very ancient TypeEngine constructor, not used by anything
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Dec 2013 22:56:03 +0000 (17:56 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Dec 2013 22:56:03 +0000 (17:56 -0500)
lib/sqlalchemy/sql/type_api.py
test/sql/test_types.py

index 12babd2c2551b278938dce73a63b5fbe3cf50954..9e477ba6fe73426b52558d8504be61deac4cfb7f 100644 (file)
@@ -403,12 +403,6 @@ class TypeEngine(Visitable):
         else:
             return str(self.compile())
 
-    def __init__(self, *args, **kwargs):
-        """Support implementations that were passing arguments"""
-        if args or kwargs:
-            util.warn_deprecated("Passing arguments to type object "
-                    "constructor %s is deprecated" % self.__class__)
-
     def __repr__(self):
         return util.generic_repr(self)
 
index 09176c00039404fd394b38e213aa39af45c1c676..a422ace61584c32e06eeded99481d2413960548d 100644 (file)
@@ -167,14 +167,6 @@ class AdaptTest(fixtures.TestBase):
                 t1 = typ()
             repr(t1)
 
-    def test_plain_init_deprecation_warning(self):
-        for typ in (Integer, Date, SmallInteger):
-            assert_raises_message(
-                exc.SADeprecationWarning,
-                "Passing arguments to type object "
-                "constructor %s is deprecated" % typ,
-                typ, 11
-            )
 
 class TypeAffinityTest(fixtures.TestBase):
     def test_type_affinity(self):