summaryrefslogtreecommitdiff
path: root/python/policy.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-01-30 15:39:42 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2012-01-30 15:39:42 +0100
commit38165cbeb26313bb468dcf527a843ba55571a8f2 (patch)
tree66615fa08272eb40c83567670453e36dec7df160 /python/policy.cc
parent00ce4d227aef4ccde15f8cfa5b1a5582195eb639 (diff)
downloadpython-apt-38165cbeb26313bb468dcf527a843ba55571a8f2.tar.gz
REFACTOR: python/policy.cc update error to include PackageFile() too
Diffstat (limited to 'python/policy.cc')
-rw-r--r--python/policy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/policy.cc b/python/policy.cc
index b7e648b5..96b83abd 100644
--- a/python/policy.cc
+++ b/python/policy.cc
@@ -50,7 +50,7 @@ PyObject *policy_get_priority(PyObject *self, PyObject *arg) {
pkgCache::PkgFileIterator pkgfile = GetCpp<pkgCache::PkgFileIterator>(arg);
return MkPyNumber(policy->GetPriority(pkgfile));
} else {
- PyErr_SetString(PyExc_TypeError,"Argument must be of Package().");
+ PyErr_SetString(PyExc_TypeError,"Argument must be of Package() or PackageFile().");
return 0;
}
}