mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-18 09:15:56 +01:00
python: fix the type nonsense of the first parameter of class Directory
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
This commit is contained in:
parent
c1094bc2d7
commit
0b2ff308ec
1 changed files with 2 additions and 3 deletions
|
@ -365,7 +365,7 @@ class Database(object):
|
||||||
dir_p = Database._get_directory(self._db, _str(path))
|
dir_p = Database._get_directory(self._db, _str(path))
|
||||||
|
|
||||||
# return the Directory, init it with the absolute path
|
# return the Directory, init it with the absolute path
|
||||||
return Directory(_str(abs_dirpath), dir_p, self)
|
return Directory(abs_dirpath, dir_p, self)
|
||||||
|
|
||||||
_add_message = nmlib.notmuch_database_add_message
|
_add_message = nmlib.notmuch_database_add_message
|
||||||
_add_message.argtypes = [NotmuchDatabaseP, c_char_p,
|
_add_message.argtypes = [NotmuchDatabaseP, c_char_p,
|
||||||
|
@ -639,7 +639,7 @@ class Directory(object):
|
||||||
|
|
||||||
def __init__(self, path, dir_p, parent):
|
def __init__(self, path, dir_p, parent):
|
||||||
"""
|
"""
|
||||||
:param path: The absolute path of the directory object as unicode.
|
:param path: The absolute path of the directory object.
|
||||||
:param dir_p: The pointer to an internal notmuch_directory_t object.
|
:param dir_p: The pointer to an internal notmuch_directory_t object.
|
||||||
:param parent: The object this Directory is derived from
|
:param parent: The object this Directory is derived from
|
||||||
(usually a :class:`Database`). We do not directly use
|
(usually a :class:`Database`). We do not directly use
|
||||||
|
@ -647,7 +647,6 @@ class Directory(object):
|
||||||
this Directory object lives. This keeps the
|
this Directory object lives. This keeps the
|
||||||
parent object alive.
|
parent object alive.
|
||||||
"""
|
"""
|
||||||
assert isinstance(path, unicode), "Path needs to be an UNICODE object"
|
|
||||||
self._path = path
|
self._path = path
|
||||||
self._dir_p = dir_p
|
self._dir_p = dir_p
|
||||||
self._parent = parent
|
self._parent = parent
|
||||||
|
|
Loading…
Reference in a new issue