summaryrefslogtreecommitdiff
path: root/lib/thandy/util.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-11-17 02:35:00 +0000
committerNick Mathewson <nickm@torproject.org>2008-11-17 02:35:00 +0000
commitd49ac7f4ceec36ad627d716ab83194c3c4b974be (patch)
tree117f92508ac11560a97fc99f8b091ffde5494fef /lib/thandy/util.py
parent32c62957f600c4dcba8fb24b6d00217876d84edd (diff)
Stop dropping a byte every time a download fails. also start working on making other exceptions propagete from woder threads.
git-svn-id: file:///home/or/svnrepo/updater/trunk@17309 55e972cd-5a19-0410-ae62-a4d7a52db4cd
Diffstat (limited to 'lib/thandy/util.py')
-rw-r--r--lib/thandy/util.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/thandy/util.py b/lib/thandy/util.py
index c1f1326..00efb59 100644
--- a/lib/thandy/util.py
+++ b/lib/thandy/util.py
@@ -10,6 +10,11 @@ try:
except ImportError:
import simplejson as json
+try:
+ import _winreg
+except ImportError:
+ _winreg = None
+
import thandy.formats
import thandy.keys
import thandy.master_keys
@@ -100,3 +105,4 @@ def randChooseWeighted(lst):
return i
return lst[-1][1]
+