summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Schaller <michael@5challer.de>2014-03-10 20:47:35 +0100
committerJulian Andres Klode <jak@debian.org>2015-06-10 18:01:17 +0200
commit79a9f191d9f262016d28339c69b28777e4c95426 (patch)
treeda5a7e2982cd37a89b0da460d1b030f81746934b /apt
parent7733ef642461daf7bd82aaeb7c9f9b184455b19d (diff)
downloadpython-apt-79a9f191d9f262016d28339c69b28777e4c95426.tar.gz
Fixed docstring of BaseDependency.version property.
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