mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-27 03:09:25 -05:00
Flake8
This commit is contained in:
parent
48b5829aea
commit
109a560905
@ -29,14 +29,13 @@ from synapse.http.server import (
|
|||||||
from synapse.util.async import ObservableDeferred
|
from synapse.util.async import ObservableDeferred
|
||||||
from synapse.util.stringutils import is_ascii
|
from synapse.util.stringutils import is_ascii
|
||||||
|
|
||||||
from copy import deepcopy
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import fnmatch
|
import fnmatch
|
||||||
import cgi
|
import cgi
|
||||||
import ujson as json
|
import ujson as json
|
||||||
import urlparse
|
import urlparse
|
||||||
|
import itertools
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
@ -442,8 +441,6 @@ def _iterate_over_text(tree, *tags_to_ignore):
|
|||||||
"""Iterate over the tree returning text nodes in a depth first fashion,
|
"""Iterate over the tree returning text nodes in a depth first fashion,
|
||||||
skipping text nodes inside certain tags.
|
skipping text nodes inside certain tags.
|
||||||
"""
|
"""
|
||||||
import itertools
|
|
||||||
|
|
||||||
# This is basically a stack that we extend using itertools.chain.
|
# This is basically a stack that we extend using itertools.chain.
|
||||||
# This will either consist of an element to iterate over *or* a string
|
# This will either consist of an element to iterate over *or* a string
|
||||||
# to be returned.
|
# to be returned.
|
||||||
|
Loading…
Reference in New Issue
Block a user