summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
Diffstat (limited to 'apt')
-rw-r--r--apt/package.py6
1 files changed, 4 insertions, 2 deletions
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