summaryrefslogtreecommitdiff
path: root/tests/pkgrecords.py
diff options
context:
space:
mode:
authorBen Finney <ben@benfinney.id.au>2008-05-16 16:11:06 +1000
committerBen Finney <ben@benfinney.id.au>2008-05-16 16:11:06 +1000
commita953d82143f0ec979e18f17e8d9bbacbac954868 (patch)
tree42e76c37d72847d4fe3ca2487e227ae1649ad3c0 /tests/pkgrecords.py
parent21ef2ab57d68de87a2b44a23d9a3bfb87d24d46d (diff)
downloadpython-apt-a953d82143f0ec979e18f17e8d9bbacbac954868.tar.gz
Fixes to blank lines, to conform with PEP 8.
Diffstat (limited to 'tests/pkgrecords.py')
-rw-r--r--tests/pkgrecords.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pkgrecords.py b/tests/pkgrecords.py
index 43723569..308505f7 100644
--- a/tests/pkgrecords.py
+++ b/tests/pkgrecords.py
@@ -7,6 +7,7 @@
import apt_pkg
import sys
+
def main():
apt_pkg.init()
cache = apt_pkg.GetCache()
@@ -31,6 +32,7 @@ def main():
pass
print "\r%i/%i=%.3f%% " % (i,cache.PackageCount, (float(i)/float(cache.PackageCount)*100)),
+
if __name__ == "__main__":
main()
sys.exit(0)