diff options
author | Stéphane Blondon <stephane.blondon@gmail.com> | 2022-08-03 16:55:43 +0200 |
---|---|---|
committer | Stéphane Blondon <stephane.blondon@gmail.com> | 2022-08-03 16:55:43 +0200 |
commit | 8427bfbb3fe22c5480a9343b57f4660e11f520d8 (patch) | |
tree | 1d59a955b566fb7dd8a0adf18c77dfc5d3c339c6 | |
parent | b0426fc2952ba45de75cbd37db350281dce101df (diff) | |
download | webtest-8427bfbb3fe22c5480a9343b57f4660e11f520d8.tar.gz |
Remove python2.5 and older unicode workaround
-rw-r--r-- | webtest/forms.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/webtest/forms.py b/webtest/forms.py index d2d6bfc..996bb28 100644 --- a/webtest/forms.py +++ b/webtest/forms.py @@ -2,7 +2,6 @@ import operator import re -import sys from bs4 import BeautifulSoup from collections import OrderedDict @@ -460,11 +459,6 @@ class Form: FieldClass = self.FieldClass.classes.get(tag_type, self.FieldClass) - # https://github.com/Pylons/webtest/issues/73 - if sys.version_info[:2] <= (2, 6): - attrs = {k.encode('utf-8') if isinstance(k, unicode) - else k: v for k, v in attrs.items()} - # https://github.com/Pylons/webtest/issues/131 reserved_attributes = ('form', 'tag', 'pos') for attr in reserved_attributes: |