diff options
| -rw-r--r-- | python/hashstring.cc | 4 | ||||
| -rw-r--r-- | python/indexrecords.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/python/hashstring.cc b/python/hashstring.cc index 02a80210..71ae5bf4 100644 --- a/python/hashstring.cc +++ b/python/hashstring.cc @@ -64,7 +64,7 @@ static PyObject *HashString_HashType(PyObject *self) return CppPyString(hash->HashType()); } -static const char *HashString_VerifyFile_doc = +static char *HashString_VerifyFile_doc = "verify_file(filename: str) --> bool\n\n" "Verify that the file indicated by filename matches the hash."; @@ -87,7 +87,7 @@ static PyMethodDef HashString_Methods[] = { {} }; -static const char *HashString_doc = +static char *HashString_doc = "HashString(type, hash) OR HashString('type:hash')\n\n" "Create a new HashString object. The first form allows you to specify\n" "a type and a hash, and the second form a single string where type and\n" diff --git a/python/indexrecords.cc b/python/indexrecords.cc index 917c3bbf..35e41c59 100644 --- a/python/indexrecords.cc +++ b/python/indexrecords.cc @@ -44,7 +44,7 @@ static PyObject *IndexRecords_Load(PyObject *self,PyObject *args) return HandleErrors(Py_BuildValue("i", records->Load(filename))); } -static const char *IndexRecords_Lookup_doc = "lookup(metakey)\n\n" +static char *IndexRecords_Lookup_doc = "lookup(metakey)\n\n" "Lookup the filename given by metakey, return a tuple (hash, size).\n" "The hash part is a HashString() object."; static PyObject *IndexRecords_Lookup(PyObject *self,PyObject *args) |
