Skip to content

Commit

Permalink
Drop deprecated diff routes from server
Browse files Browse the repository at this point in the history
Now is a good time to do this, as we switch to an entirely new package.
  • Loading branch information
Mr0grog committed Oct 27, 2020
1 parent 088ad72 commit ec32bd0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions web_monitoring_diff/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,30 +48,19 @@
# applying diff-match-patch (dmp) to strings (no tokenization)
"html_text_dmp": basic_diffs.html_text_diff,
"html_source_dmp": basic_diffs.html_source_diff,
# three different approaches to the same goal:
"html_token": html_render_diff.html_diff_render,

# deprecated synonyms
"links_diff": html_links_diff.links_diff,
"html_text_diff": basic_diffs.html_text_diff,
"html_source_diff": basic_diffs.html_source_diff,
"html_visual_diff": html_render_diff.html_diff_render,
}

# Optional, experimental diffs.
try:
from ..experimental import htmltreediff
DIFF_ROUTES["html_tree"] = htmltreediff.diff
# Deprecated synonym
DIFF_ROUTES["html_tree_diff"] = htmltreediff.diff
except ModuleNotFoundError:
...

try:
from ..experimental import htmldiffer
DIFF_ROUTES["html_perma_cc"] = htmldiffer.diff
# Deprecated synonym
DIFF_ROUTES["html_differ"] = htmldiffer.diff
except ModuleNotFoundError:
...

Expand Down

0 comments on commit ec32bd0

Please sign in to comment.