Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
BridgeDB
Commits
7ed74c90
Commit
7ed74c90
authored
Dec 19, 2007
by
Nick Mathewson
⛰
Browse files
r17258@catbus: nickm | 2007-12-19 17:15:35 -0500
Fix an attempt to take the length of a generator. svn:r12874
parent
ac112c4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/bridgedb/Dist.py
View file @
7ed74c90
...
...
@@ -200,10 +200,10 @@ class EmailBasedDistributor(bridgedb.Bridges.BridgeHolder):
if
self
.
store
.
has_key
(
emailaddress
):
result
=
[]
ids_str
=
self
.
store
[
emailaddress
]
ids
=
bridgedb
.
Bridges
.
chopString
(
ids_str
,
bridgedb
.
Bridges
.
ID_LEN
)
logging
.
info
(
"We've seen %r before. Sending the same %d bridges"
" as last time"
,
emailaddress
,
len
(
ids
))
for
ident
in
ids
:
logging
.
info
(
"We've seen %r before. Sending the same bridges"
" as last time"
,
emailaddress
)
for
ident
in
bridgedb
.
Bridges
.
chopString
(
ids_str
,
bridgedb
.
Bridges
.
ID_LEN
)
:
b
=
self
.
ring
.
getBridgeByID
(
ident
)
if
b
!=
None
:
result
.
append
(
b
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment