diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-07-24 19:06:49 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-07-24 19:38:44 -0700 |
commit | a682074e9ed5e94683389f67cc192e6547d6310e (patch) | |
tree | 4c607f3e9ff94a2b6f0b67d7ef86629e8396218f /netlib/strutils.py | |
parent | c1bd4dabc8a03b17ea55b5e7b4ab444f59b95e2d (diff) | |
download | mitmproxy-a682074e9ed5e94683389f67cc192e6547d6310e.tar.gz mitmproxy-a682074e9ed5e94683389f67cc192e6547d6310e.tar.bz2 mitmproxy-a682074e9ed5e94683389f67cc192e6547d6310e.zip |
improve query/path_components getter/setter
Diffstat (limited to 'netlib/strutils.py')
-rw-r--r-- | netlib/strutils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/netlib/strutils.py b/netlib/strutils.py index 96c8b10f..8f27ebb7 100644 --- a/netlib/strutils.py +++ b/netlib/strutils.py @@ -98,6 +98,9 @@ def bytes_to_escaped_str(data, keep_spacing=False): def escaped_str_to_bytes(data): """ Take an escaped string and return the unescaped bytes equivalent. + + Raises: + ValueError, if the escape sequence is invalid. """ if not isinstance(data, six.string_types): if six.PY2: |