Fix some documentation errors.
authorCameron Dale <camrdale@gmail.com>
Sat, 26 Apr 2008 01:50:42 +0000 (18:50 -0700)
committerCameron Dale <camrdale@gmail.com>
Sat, 26 Apr 2008 01:50:42 +0000 (18:50 -0700)
apt-p2p.py
apt_p2p/HTTPServer.py
apt_p2p/apt_p2p.py
apt_p2p/stats.py
docs/epydoc.config
test.py

index 277cd76a93e25747165669f8fa1214c09e41bb23..911dfce162bfd55d0cbc19097a77ee00a285a77a 100644 (file)
@@ -1,13 +1,14 @@
-#!/usr/bin/env python
+#!/usr/bin/python
 
 
-# Load apt-p2p application
-#
-# There are two ways apt-p2p can be started:
-#  1. twistd -y apt-p2p
-#     - twistd will load this file and execute the app
-#       in 'application' variable
-#  2. from command line
-#     - __name__ will be '__main__'
+"""Load the apt-p2p application.
+
+There are two ways apt-p2p can be started:
+  1. twistd -y apt-p2p
+     - twistd will load this file and execute the app
+       in 'application' variable
+  2. from command line
+     - __name__ will be '__main__'
+"""
 
 import pwd,sys
 
 
 import pwd,sys
 
index 652198f990132a8041b6f8ca37be30a55ad34a1d..c92df92d2baf461651d1dbcd6bab67f60601ec44 100644 (file)
@@ -90,7 +90,7 @@ class FileDownloader(static.File):
 class PiecesUploader(static.Data):
     """Modified to identify it for peer requests.
     
 class PiecesUploader(static.Data):
     """Modified to identify it for peer requests.
     
-    Uses the modified L{Streams.PieceUploadStream} to stream the pieces for throttling.
+    Uses the modified L{Streams.PiecesUploadStream} to stream the pieces for throttling.
     """
 
     def render(self, req):
     """
 
     def render(self, req):
index c7e6d6726078e96a7c3245bccacd64c70e8fa03e..385e27571226a2c8f32571bac3b39b46b205c95b 100644 (file)
@@ -179,8 +179,6 @@ class AptP2P(protocol.Factory):
         @param url: the URI of the actual mirror request
         @type orig_resp: L{twisted.web2.http.Response}
         @param orig_resp: the response from the cache to be sent to apt
         @param url: the URI of the actual mirror request
         @type orig_resp: L{twisted.web2.http.Response}
         @param orig_resp: the response from the cache to be sent to apt
-        @rtype: L{twisted.internet.defer.Deferred}
-        @return: a deferred that will be called back with the correct response
         """
         log.msg('Checking if %s is still fresh' % url)
         modtime = orig_resp.headers.getHeader('Last-Modified')
         """
         log.msg('Checking if %s is still fresh' % url)
         modtime = orig_resp.headers.getHeader('Last-Modified')
index bd422d90713c5f8df6847db606f70be0fd418e5d..7cea6b2e1f707d74e3ca871946c4e39eb869191a 100644 (file)
@@ -34,8 +34,8 @@ class StatsLogger:
     def __init__(self, db):
         """Initialize the statistics.
         
     def __init__(self, db):
         """Initialize the statistics.
         
-        @type store: L{db.DB}
-        @param store: the database for the Apt-P2P downloader
+        @type db: L{db.DB}
+        @param db: the database for the Apt-P2P downloader
         """
         # Database
         self.db = db
         """
         # Database
         self.db = db
index 593c5ab1d72e667ebf843400a948b27b61198c1f..43a74f14287d16ac5046d9c72a92dd6aa5ef4043 100644 (file)
@@ -3,7 +3,7 @@
 # The list of objects to document.  Objects can be named using
 # dotted names, module filenames, or package directory names.
 # Alases for this option include "objects" and "values".
 # The list of objects to document.  Objects can be named using
 # dotted names, module filenames, or package directory names.
 # Alases for this option include "objects" and "values".
-modules: apt_p2p apt_p2p_Khashmir test.py
+modules: apt_p2p apt_p2p_Khashmir apt-p2p.py test.py
 
 # The type of output that should be generated.  Should be one
 # of: html, text, latex, dvi, ps, pdf.
 
 # The type of output that should be generated.  Should be one
 # of: html, text, latex, dvi, ps, pdf.
diff --git a/test.py b/test.py
index 198670119867fdbcf13d31dda6a41b07e2c80cc0..83c2d1bbecfce101529560035c9db77f8ed9b5e5 100755 (executable)
--- a/test.py
+++ b/test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
 
 """Automated tests of the apt-p2p functionality.
 
 
 """Automated tests of the apt-p2p functionality.
 
@@ -29,7 +29,8 @@ the apt-p2p program.
 @var CWD: the working directory the script was run from
 @type apt_conf_template: C{string}
 @var apt_conf_template: the template to use for the apt.conf file
 @var CWD: the working directory the script was run from
 @type apt_conf_template: C{string}
 @var apt_conf_template: the template to use for the apt.conf file
-
+@type apt_p2p_conf_template: C{string}
+@var apt_p2p_conf_template: the template to use for the apt-p2p.conf file
 """
 
 from time import sleep, time
 """
 
 from time import sleep, time