summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/torture
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2006-03-30 05:50:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:21 -0500
commit61ce5cd1c687041563873b679ece3ea2e1b7f1f7 (patch)
tree625e67e5542f4cff89b4ac80ec594a91450401b5 /source4/scripting/swig/torture
parentaec7f3ae721bff48e63cc3abcee07b18fa13417a (diff)
downloadsamba-61ce5cd1c687041563873b679ece3ea2e1b7f1f7.tar.gz
samba-61ce5cd1c687041563873b679ece3ea2e1b7f1f7.tar.bz2
samba-61ce5cd1c687041563873b679ece3ea2e1b7f1f7.zip
r14804: Start writing a more Pythonic tdb module.
(This used to be commit 4c9af9c1495e0582de8353709d7b79b731a7fc75)
Diffstat (limited to 'source4/scripting/swig/torture')
-rwxr-xr-xsource4/scripting/swig/torture/torture_tdb.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/source4/scripting/swig/torture/torture_tdb.py b/source4/scripting/swig/torture/torture_tdb.py
index 4c44096811..d9ca4dedba 100755
--- a/source4/scripting/swig/torture/torture_tdb.py
+++ b/source4/scripting/swig/torture/torture_tdb.py
@@ -1,10 +1,6 @@
#!/usr/bin/python
-import sys, tdb
-from os import *
-
-t = tdb.open('foo.tdb', 0, 0, O_RDWR | O_CREAT, 0600)
-tdb.close(t)
-
-unlink('foo.tdb')
+import Tdb, os
+t = Tdb.Tdb('foo.tdb')
+os.unlink('foo.tdb')