Bug#733489: [PATCH 4/5] Fixed docstring of BaseDependency.version property.
---
apt/package.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/apt/package.py b/apt/package.py
index 86c7eb6..e864c68 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -120,9 +120,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
--
1.8.3.2
Reply to: