summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2009-06-01 14:40:06 +0200
committerSebastian Hahn <sebastian@torproject.org>2009-08-25 19:24:42 +0200
commit33f0fc41bb8a8ff08432d91ebca7863d40b5c615 (patch)
tree3b337910378be79f6c0c5fb92219994b7f9c0ba9
parent87721d4833478ea4f9c857553ea3e86e08b727b1 (diff)
Spelling fixes and import cleanup
-rw-r--r--lib/thandy/ClientCLI.py3
-rw-r--r--lib/thandy/SignerCLI.py1
-rw-r--r--lib/thandy/download.py2
-rw-r--r--lib/thandy/formats.py2
-rw-r--r--specs/thandy-spec.txt4
5 files changed, 5 insertions, 7 deletions
diff --git a/lib/thandy/ClientCLI.py b/lib/thandy/ClientCLI.py
index e5b23e5..05d2cd8 100644
--- a/lib/thandy/ClientCLI.py
+++ b/lib/thandy/ClientCLI.py
@@ -1,9 +1,8 @@
+import thandy.bt_compat
# Copyright 2008 The Tor Project, Inc. See LICENSE for licensing information.
import getopt
import logging
-import os
-import re
import sys
import time
import traceback
diff --git a/lib/thandy/SignerCLI.py b/lib/thandy/SignerCLI.py
index 9477cfe..d0feef6 100644
--- a/lib/thandy/SignerCLI.py
+++ b/lib/thandy/SignerCLI.py
@@ -3,7 +3,6 @@
import os
import getopt
import sys
-import logging
import thandy.keys
import thandy.formats
diff --git a/lib/thandy/download.py b/lib/thandy/download.py
index d5f1629..3756a25 100644
--- a/lib/thandy/download.py
+++ b/lib/thandy/download.py
@@ -423,7 +423,7 @@ class DownloadJob:
def setDownloadStatusLog(self, log):
"""Base our URL-picking decisions on the DownloadStatusLog in
- 'log'. The caller is still reposnsible for invoking the
+ 'log'. The caller is still responsible for invoking the
logs failed() or succeeded methods. XXXX is that bad API
design?"""
pass
diff --git a/lib/thandy/formats.py b/lib/thandy/formats.py
index 5429d5c..b8bdf5b 100644
--- a/lib/thandy/formats.py
+++ b/lib/thandy/formats.py
@@ -914,7 +914,7 @@ def checkSignedObj(obj, keydb=None):
role = 'package'
path = obj['signed']['location']
else:
- raise ValueError("Unkown signed object type %r"%tp)
+ raise ValueError("Unknown signed object type %r"%tp)
ss = None
if keydb is not None:
diff --git a/specs/thandy-spec.txt b/specs/thandy-spec.txt
index 5cc4fa6..7ebe444 100644
--- a/specs/thandy-spec.txt
+++ b/specs/thandy-spec.txt
@@ -290,7 +290,7 @@
S is a signature of the canonical encoding of X using the
identified key.
- We define one signing methods at present:
+ We define one signing method at present:
sha256-pkcs1 : A signature of the SHA256 hash of the canonical
encoding of X, using PKCS-1 padding.
@@ -665,7 +665,7 @@
KEY must be unique across the thandy repository. It identifies
this kind of installable item uniquely. VAL is the version of this
item. When Thandy installs the item, it writes a persistent mapping
- from KEY to VAL to a local database. The item is instaleld if such
+ from KEY to VAL to a local database. The item is installed if such
a mapping is found to exist.