tdb2: don't use TDB2 versions of test tdb files.
[samba.git] / source4 / scripting / python / samba / samba3 / __init__.py
index dd2f927aa4ae3bbad98e8d44ca13b2b942032d26..a955be1a735f29c43c39be825f9cc2cdc3d3927e 100644 (file)
@@ -53,12 +53,9 @@ class TdbDatabase(object):
     def __init__(self, file):
         """Open a file.
 
-        :param file: Path of the file to open (appending "2" if TDB2 enabled).
+        :param file: Path of the file to open.
         """
-        if tdb.__version__.startswith("2"):
-            self.tdb = tdb.Tdb(file + "2", flags=os.O_RDONLY)
-        else:
-            self.tdb = tdb.Tdb(file, flags=os.O_RDONLY)
+        self.tdb = tdb.Tdb(file, flags=os.O_RDONLY)
         self._check_version()
 
     def _check_version(self):