Skip to content

Commit 0d4a3e4

Browse files
committed
Explain what "".encode test does
Bump to 3.1.6.dev
1 parent 8594f48 commit 0d4a3e4

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The Python Shapefile Library (PyShp) reads and writes ESRI Shapefiles in pure Py
88

99
- **Author**: [Joel Lawhead](https://github.com/GeospatialPython)
1010
- **Maintainers**: [James Parrott](https://github.com/JamesParrott) & [Karim Bahgat](https://github.com/karimbahgat)
11-
- **Version**: 3.1.5
11+
- **Version**: 3.1.6.dev
1212
- **Date**: 22nd July 2026
1313
- **License**: [MIT](https://github.com/GeospatialPython/pyshp/blob/master/LICENSE.TXT)
1414

src/shapefile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from __future__ import annotations
1010

11-
__version__ = "3.1.5"
11+
__version__ = "3.1.6.dev"
1212

1313
import abc
1414
import array

tests/hypothesis_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,9 @@ def _exclude_chars() -> dict[str,list[str]]:
613613
for enc in aliases.values():
614614
if enc in exclude_chars:
615615
continue
616-
# I'm not sure why any encoding would fail on an empty string,
617-
# but I'd rather not have the tests get bogged by any that do exist.
616+
617+
# Weed out: base64_codec, bz2_codec, hex_codec,
618+
# quopri_codec, rot_13, uu_codec & zlib_codec
618619
try:
619620
"".encode(enc)
620621
except (UnicodeEncodeError, LookupError):

0 commit comments

Comments
 (0)