diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-30 15:39:42 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-30 15:39:42 +0100 |
| commit | 38165cbeb26313bb468dcf527a843ba55571a8f2 (patch) | |
| tree | 66615fa08272eb40c83567670453e36dec7df160 /python/policy.cc | |
| parent | 00ce4d227aef4ccde15f8cfa5b1a5582195eb639 (diff) | |
| download | python-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.cc | 2 |
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; } } |
