Skip to content

Commit

Permalink
Python 3.6: OrderedDict → dict
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar committed Nov 8, 2021
1 parent 4efe6e7 commit 64e817b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions courlan/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import logging
import re

from collections import OrderedDict
from urllib.parse import parse_qs, urlencode, urlparse, ParseResult

from .filters import validate_url
Expand Down Expand Up @@ -89,7 +88,7 @@ def clean_query(parsed_url, strict=False, language=None):
'''Strip unwanted query elements'''
if len(parsed_url.query) > 0:
qdict = parse_qs(parsed_url.query)
newqdict = OrderedDict()
newqdict = dict()
for qelem in sorted(qdict.keys()):
teststr = qelem.lower()
# control param
Expand Down

0 comments on commit 64e817b

Please sign in to comment.