Skip to content

Commit

Permalink
Merge branch 'master' into fix-licensing
Browse files Browse the repository at this point in the history
  • Loading branch information
kjd authored Jan 1, 2021
2 parents 537aa99 + 6dc4bfb commit a2f5460
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ python:
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
- "3.9"
- "pypy3"
install:
- pip install .
Expand Down
1 change: 0 additions & 1 deletion idna/uts46data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# This file is automatically generated by tools/idna-data
# vim: set fileencoding=utf-8 :

"""IDNA Mapping Table from UTS46."""

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def main():
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: Name Service (DNS)',
Expand Down
8 changes: 2 additions & 6 deletions tests/test_idna_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ def testIncrementalDecoder(self):
)

for decoded, encoded in incremental_tests:
if sys.version_info[0] == 2:
self.assertEqual("".join(codecs.iterdecode(encoded, "idna")),
decoded)
else:
self.assertEqual("".join(codecs.iterdecode((bytes([c]) for c in encoded), "idna")),
decoded)
self.assertEqual("".join(codecs.iterdecode((bytes([c]) for c in encoded), "idna")),
decoded)

decoder = codecs.getincrementaldecoder("idna")()
self.assertEqual(decoder.decode(b"xn--xam", ), "")
Expand Down

0 comments on commit a2f5460

Please sign in to comment.