summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/samba3/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/source4/scripting/python/samba/samba3/__init__.py b/source4/scripting/python/samba/samba3/__init__.py
index dd2f927aa4..a955be1a73 100644
--- a/source4/scripting/python/samba/samba3/__init__.py
+++ b/source4/scripting/python/samba/samba3/__init__.py
@@ -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):