summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/depcache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/depcache.cc b/python/depcache.cc
index d2ec4a8d..218fd0e9 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -493,7 +493,7 @@ PyTypeObject PkgDepCacheType =
PyObject *GetDepCache(PyObject *Self,PyObject *Args)
{
PyObject *Owner;
- if (PyArg_ParseTuple(Args,"O!",&PkgCacheType,&Owner) == 0)
+ if (PyArg_ParseTuple(Args,"O!|O",&PkgCacheType,&Owner) == 0)
return 0;
PyObject *DepCachePyObj;