that's too much!
This commit is contained in:
12
.venv/lib/python3.12/site-packages/fiona/compat.py
Normal file
12
.venv/lib/python3.12/site-packages/fiona/compat.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from collections import UserDict
|
||||
from collections.abc import Mapping
|
||||
|
||||
DICT_TYPES = (dict, Mapping, UserDict)
|
||||
|
||||
|
||||
def strencode(instr, encoding="utf-8"):
|
||||
try:
|
||||
instr = instr.encode(encoding)
|
||||
except (UnicodeDecodeError, AttributeError):
|
||||
pass
|
||||
return instr
|
||||
Reference in New Issue
Block a user