Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove python2.5 and older unicode workaround #244

Merged
merged 1 commit into from Aug 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 0 additions & 6 deletions webtest/forms.py
Expand Up @@ -2,7 +2,6 @@

import operator
import re
import sys

from bs4 import BeautifulSoup
from collections import OrderedDict
Expand Down Expand Up @@ -460,11 +459,6 @@ def _parse_fields(self):
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:
Expand Down