aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/mask.cc7
-rwxr-xr-xpython/metadata_key_TEST.py2
2 files changed, 5 insertions, 4 deletions
diff --git a/python/mask.cc b/python/mask.cc
index 8884cd376..60ef4a597 100644
--- a/python/mask.cc
+++ b/python/mask.cc
@@ -31,11 +31,12 @@ namespace bp = boost::python;
namespace
{
std::shared_ptr<RepositoryMaskInfo> make_repository_mask_info(
- const std::shared_ptr<const Sequence<std::string> > & s, const FSPath & f)
+ const std::shared_ptr<const Sequence<std::string> > & s, const FSPath & f, const std::string & t)
{
return std::make_shared<RepositoryMaskInfo>(make_named_values<RepositoryMaskInfo>(
n::comment() = s,
- n::mask_file() = f
+ n::mask_file() = f,
+ n::token() = t
));
}
}
@@ -300,7 +301,7 @@ void expose_mask()
.def("__init__",
bp::make_constructor(&make_repository_mask_info),
- "__init__(list of string, path_str)"
+ "__init__(list of string, path_str, token_str)"
)
.add_property("mask_file",
diff --git a/python/metadata_key_TEST.py b/python/metadata_key_TEST.py
index 92a0d6a4e..23c7dec0d 100755
--- a/python/metadata_key_TEST.py
+++ b/python/metadata_key_TEST.py
@@ -151,7 +151,7 @@ class TestCase_02_MetadataKeys_suclassing(unittest.TestCase):
MetadataRepositoryMaskInfoKey.__init__(self)
def value(self):
- return RepositoryMaskInfo(["comment"], "/foo")
+ return RepositoryMaskInfo(["comment"], "/foo", "")
def raw_name(self):
return "raw"