Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
Fixes to the 'rU' file mode to make itvalid for python 3.10+
  • Loading branch information
mistressAlisi authored and dsc committed Sep 17, 2024
1 parent 1351d2d commit 53f5360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
HERE = abspath(dirname(__file__))
readme = open(join(HERE, 'README.rst')).read()

package_file = open(join(HERE, 'bunch/__init__.py'), 'rU')
package_file = open(join(HERE, 'bunch/__init__.py'), 'ru')
__version__ = re.sub(
r".*\b__version__\s+=\s+'([^']+)'.*",
r'\1',
Expand Down

0 comments on commit 53f5360

Please sign in to comment.