summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/all_deps.py4
-rw-r--r--doc/source/examples/missing-deps.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/examples/all_deps.py b/doc/examples/all_deps.py
index 179501f4..6ce264bb 100644
--- a/doc/examples/all_deps.py
+++ b/doc/examples/all_deps.py
@@ -14,8 +14,8 @@ def dependencies(cache, pkg, deps, key="Depends"):
for depVerList in dependslist[key]:
for dep in depVerList:
if dep.target_pkg.name in cache:
- if pkg.name != dep.target_pkg.name and \
- not dep.target_pkg.name in deps:
+ if (pkg.name != dep.target_pkg.name and
+ dep.target_pkg.name not in deps):
deps.add(dep.target_pkg.name)
dependencies(
cache, cache[dep.target_pkg.name], deps, key)
diff --git a/doc/source/examples/missing-deps.py b/doc/source/examples/missing-deps.py
index 7af18128..b9ccdc19 100644
--- a/doc/source/examples/missing-deps.py
+++ b/doc/source/examples/missing-deps.py
@@ -43,7 +43,7 @@ def main():
# Check every version
for pfile, _ in version.file_list:
if (pfile.origin == "Debian" and pfile.component == "main" and
- pfile.archive == "unstable"):
+ pfile.archive == "unstable"):
# We only want packages from Debian unstable main.
check_version(version)
break