Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
109a5609
Commit
109a5609
authored
8 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Flake8
parent
48b5829a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/rest/media/v1/preview_url_resource.py
+1
-4
1 addition, 4 deletions
synapse/rest/media/v1/preview_url_resource.py
with
1 addition
and
4 deletions
synapse/rest/media/v1/preview_url_resource.py
+
1
−
4
View file @
109a5609
...
...
@@ -29,14 +29,13 @@ from synapse.http.server import (
from
synapse.util.async
import
ObservableDeferred
from
synapse.util.stringutils
import
is_ascii
from
copy
import
deepcopy
import
os
import
re
import
fnmatch
import
cgi
import
ujson
as
json
import
urlparse
import
itertools
import
logging
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,
skipping text nodes inside certain tags.
"""
import
itertools
# This is basically a stack that we extend using itertools.chain.
# This will either consist of an element to iterate over *or* a string
# to be returned.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment