Commit e317c551 authored by anonym's avatar anonym
Browse files

tor-controlport-filter: simplification.

parent 4715f6c8
......@@ -222,8 +222,8 @@ def match_and_parse_filter(filters, matchers):
'' in confs[key]]
)
setconf_assignment_part = "\s*|\s*".join([
"{}{}".format(
key, "=({})".format("|".join(confs[key]))
"{}=({})".format(
key, "|".join(confs[key])
) for key in confs if isinstance(confs[key], list) and \
len(confs[key]) > 0])
setconf_parts = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment