Skip to content

Commit

Permalink
refactor(util.misc): Remove deprecated functions
Browse files Browse the repository at this point in the history
Removes percent_escape and percent_unescape, which were deprecated in
0.1.8.
  • Loading branch information
kgriffs committed Apr 15, 2014
1 parent 1c5b645 commit 9a37226
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions falcon/http_error.py
Expand Up @@ -22,7 +22,7 @@
else: # pragma: no cover
from collections import OrderedDict

from falcon import util
from falcon.util import uri


class HTTPError(Exception):
Expand Down Expand Up @@ -83,7 +83,7 @@ def __init__(self, status, title, description=None, headers=None,
if href:
link = self.link = OrderedDict()
link['text'] = (href_text or 'API documention for this error')
link['href'] = util.percent_escape(href)
link['href'] = uri.encode(href)
link['rel'] = 'help'
else:
self.link = None
Expand Down
12 changes: 0 additions & 12 deletions falcon/util/misc.py
Expand Up @@ -17,16 +17,11 @@
import inspect
import warnings

from falcon.util import uri


__all__ = (
'deprecated',
'dt_to_http',
'http_date_to_dt',
'to_query_str',
'percent_escape',
'percent_unescape',
)


Expand Down Expand Up @@ -137,10 +132,3 @@ def to_query_str(params):
query_str += k + '=' + v + '&'

return query_str[:-1]


# TODO(kgriffs): Remove this alias in Falcon v0.2.0
percent_escape = uri.encode

# TODO(kgriffs): Remove this alias in Falcon v0.2.0
percent_unescape = uri.decode

0 comments on commit 9a37226

Please sign in to comment.