summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/tdb.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-19 23:36:33 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-19 23:36:33 +0200
commit1b4b8d5e78e553c759c16c1605b610498fddf77b (patch)
treee8c44f724bd99be06b6e9aa49238a2b44e56f55c /source4/lib/tdb/tdb.py
parent40b6dc1b3188bb3fee90bc0e19ed1cfa632c7ffd (diff)
downloadsamba-1b4b8d5e78e553c759c16c1605b610498fddf77b.tar.gz
samba-1b4b8d5e78e553c759c16c1605b610498fddf77b.tar.bz2
samba-1b4b8d5e78e553c759c16c1605b610498fddf77b.zip
Add __repr__ implementation for Tdb.
(This used to be commit 205699ed663a3c6d27695dee25bf26978615b475)
Diffstat (limited to 'source4/lib/tdb/tdb.py')
-rw-r--r--source4/lib/tdb/tdb.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/lib/tdb/tdb.py b/source4/lib/tdb/tdb.py
index 0effa3ff98..eb76ca6459 100644
--- a/source4/lib/tdb/tdb.py
+++ b/source4/lib/tdb/tdb.py
@@ -1,5 +1,5 @@
# This file was automatically generated by SWIG (http://www.swig.org).
-# Version 1.3.33
+# Version 1.3.35
#
# Don't modify this file, modify the SWIG interface instead.
@@ -80,11 +80,11 @@ TDB_ERR_EINVAL = _tdb.TDB_ERR_EINVAL
TDB_ERR_RDONLY = _tdb.TDB_ERR_RDONLY
class tdb(object):
thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
- def __init__(self): raise AttributeError, "No constructor defined"
+ def __init__(self, *args, **kwargs): raise AttributeError, "No constructor defined"
__repr__ = _swig_repr
__swig_destroy__ = _tdb.delete_tdb
- def __str__(self):
- return self.name()
+ def __repr__(self):
+ return "Tdb('%s')" % self.name()
def __getitem__(self, key):