From 8cdfe5604a56ee5220d7c8c8818dd938e4ce9242 Mon Sep 17 00:00:00 2001 From: Cameron Dale Date: Wed, 9 Apr 2008 17:32:35 -0700 Subject: [PATCH] Fix some minor documentation typos. --- apt_p2p/PeerManager.py | 2 +- apt_p2p/apt_p2p.py | 4 ++-- apt_p2p_Khashmir/db.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apt_p2p/PeerManager.py b/apt_p2p/PeerManager.py index 0f64e8f..d041504 100644 --- a/apt_p2p/PeerManager.py +++ b/apt_p2p/PeerManager.py @@ -15,7 +15,7 @@ from twisted.web2.http import Response, splitHostPort from HTTPDownloader import Peer from util import uncompact -from hash import PIECE_SIZE +from Hash import PIECE_SIZE from apt_p2p_Khashmir.bencode import bdecode class GrowingFileStream(stream.FileStream): diff --git a/apt_p2p/apt_p2p.py b/apt_p2p/apt_p2p.py index 0063e9f..7a5f9fa 100644 --- a/apt_p2p/apt_p2p.py +++ b/apt_p2p/apt_p2p.py @@ -65,8 +65,8 @@ class AptP2P: def __init__(self, dhtClass): """Initialize all the sub-components. - @type dht: L{interfaces.IDHT} - @param dht: the DHT class to use + @type dhtClass: L{interfaces.IDHT} + @param dhtClass: the DHT class to use """ log.msg('Initializing the main apt_p2p application') self.dhtClass = dhtClass diff --git a/apt_p2p_Khashmir/db.py b/apt_p2p_Khashmir/db.py index bd777b6..8709970 100644 --- a/apt_p2p_Khashmir/db.py +++ b/apt_p2p_Khashmir/db.py @@ -150,7 +150,7 @@ class DB: def keyStats(self): """Count the total number of keys and values in the database. - @rtype: (C{int), C{int}) + @rtype: (C{int}, C{int}) @return: the number of distinct keys and total values in the database """ c = self.conn.cursor() -- 2.30.2