Skip to content

Commit b84358e

Browse files
committed
Force str for setuptools package_data key
When configparser backport is installed on Python 2, the RawConfigParser uses unicode keys, which setuptools rejects when they are copied into the package_data dict. Fixes myint/language-check#30
1 parent 598272a commit b84358e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def get_package_data(value):
258258
if '=' in line:
259259
# package name -- file globs or specs
260260
key, value = line.split('=')
261-
prev = package_data[key.strip()] = value.split()
261+
prev = package_data[str(key.strip())] = value.split()
262262
elif firstline:
263263
# invalid continuation on the first line
264264
raise ValueError(

0 commit comments

Comments
 (0)