diff options
| author | Georges Dubus <georges.dubus@compiletoi.net> | 2013-02-23 18:32:34 +0100 |
|---|---|---|
| committer | Georges Dubus <georges.dubus@compiletoi.net> | 2013-02-23 18:32:34 +0100 |
| commit | 594aa497d2e421c22df9c8f604d7e6bf45fd2a35 (patch) | |
| tree | 90e52c5c9229ea3160590b931511885a60abcf62 /webtest/utils.py | |
| parent | b58cb07681ebfe8b53cfca3854e7445159355488 (diff) | |
| download | webtest-594aa497d2e421c22df9c8f604d7e6bf45fd2a35.tar.gz | |
Rewrote TestResponse._find_element.
Removed the anchor argument of TestResponse.click and the button
argument of TestResponse.clickbutton. Removed utils.parse_attrs.
Diffstat (limited to 'webtest/utils.py')
| -rw-r--r-- | webtest/utils.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/webtest/utils.py b/webtest/utils.py index f78ad33..34bf2b3 100644 --- a/webtest/utils.py +++ b/webtest/utils.py @@ -80,21 +80,6 @@ def encode_params(params, content_type): return params -_attr_re = re.compile( - r'([^= \n\r\t]+)[ \n\r\t]*(?:=[ \n\r\t]*(?:"([^"]*)"|\'([^\']*)' - r'\'|([^"\'][^ \n\r\t>]*)))?', re.S) - - -def parse_attrs(text): - attrs = {} - for match in _attr_re.finditer(text): - attr_name = match.group(1).lower() - attr_body = match.group(2) or match.group(3) - attr_body = unescape_html(attr_body or '') - attrs[attr_name] = attr_body - return attrs - - def make_pattern(pat): """Find element pattern can be a regex or a callable.""" if pat is None: |
