diff options
Diffstat (limited to 'doc/examples')
| -rw-r--r-- | doc/examples/cdrom.py | 3 | ||||
| -rwxr-xr-x | doc/examples/config.py | 4 | ||||
| -rwxr-xr-x | doc/examples/configisc.py | 4 | ||||
| -rwxr-xr-x | doc/examples/gui-inst.py | 4 | ||||
| -rw-r--r-- | doc/examples/inst.py | 3 | ||||
| -rwxr-xr-x | doc/examples/versiontest.py | 6 |
6 files changed, 18 insertions, 6 deletions
diff --git a/doc/examples/cdrom.py b/doc/examples/cdrom.py index 289b10f1..743220a6 100644 --- a/doc/examples/cdrom.py +++ b/doc/examples/cdrom.py @@ -2,7 +2,8 @@ # example how to deal with the depcache import apt_pkg -import sys, os +import sys +import os import copy from progress import CdromProgress diff --git a/doc/examples/config.py b/doc/examples/config.py index 3a77301b..d0895690 100755 --- a/doc/examples/config.py +++ b/doc/examples/config.py @@ -12,7 +12,9 @@ # This shows how to use the system for configuration and option control. # The other varient is for ISC object config files. See configisc.py. -import apt_pkg, sys, posixpath +import apt_pkg +import sys +import posixpath # Create a new empty Configuration object - there is also the system global # configuration object apt_pkg.Config which is used interally by apt-pkg diff --git a/doc/examples/configisc.py b/doc/examples/configisc.py index 9a858657..03fa2cad 100755 --- a/doc/examples/configisc.py +++ b/doc/examples/configisc.py @@ -8,7 +8,9 @@ # doc/examples/ftp-archive.conf # or a bind8 config file.. -import apt_pkg, sys, posixpath +import apt_pkg +import sys +import posixpath ConfigFile = apt_pkg.ParseCommandLine(apt_pkg.Config, [], sys.argv) diff --git a/doc/examples/gui-inst.py b/doc/examples/gui-inst.py index 61db63f8..c14208ae 100755 --- a/doc/examples/gui-inst.py +++ b/doc/examples/gui-inst.py @@ -4,7 +4,9 @@ import apt import apt_pkg -import sys, os, fcntl +import sys +import os +import fcntl import copy import string import fcntl diff --git a/doc/examples/inst.py b/doc/examples/inst.py index 723038c1..a3a50356 100644 --- a/doc/examples/inst.py +++ b/doc/examples/inst.py @@ -2,7 +2,8 @@ # example how to deal with the depcache import apt -import sys, os +import sys +import os import copy import time diff --git a/doc/examples/versiontest.py b/doc/examples/versiontest.py index 732eafac..dd881f6b 100755 --- a/doc/examples/versiontest.py +++ b/doc/examples/versiontest.py @@ -1,7 +1,11 @@ #!/usr/bin/python # This is a simple clone of tests/versiontest.cc -import apt_pkg, sys, re, string +import apt_pkg +import sys +import re +import string + apt_pkg.InitConfig() apt_pkg.InitSystem() |
