From 79a9f191d9f262016d28339c69b28777e4c95426 Mon Sep 17 00:00:00 2001 From: Michael Schaller Date: Mon, 10 Mar 2014 20:47:35 +0100 Subject: Fixed docstring of BaseDependency.version property. --- apt/package.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'apt') diff --git a/apt/package.py b/apt/package.py index 069b21dd..0679b25b 100644 --- a/apt/package.py +++ b/apt/package.py @@ -106,9 +106,11 @@ class BaseDependency(object): @property def version(self): - """The target version or None. + """The target version or an empty string. - It is None if and only if relation is the empty string.""" + Note that the version is only an empty string in case of an unversioned + dependency. In this case the relation is also an empty string. + """ return self._dep.target_ver @property -- cgit v1.2.3