ports/devel/py-pprintpp/files/patch-setup.py
Po-Chuan Hsieh 029625db06
devel/py-pprintpp: Add py-pprintpp 0.4.0
pprint++ is a drop-in replacement for pprint that's actually pretty.
2024-09-30 21:36:21 +08:00

11 lines
344 B
Python

--- setup.py.orig 2018-07-01 01:42:25 UTC
+++ setup.py
@@ -8,7 +8,7 @@ try:
os.chdir(os.path.dirname(sys.argv[0]) or ".")
try:
- long_description = open("README.rst", "U").read()
+ long_description = open("README.rst", "r", encoding="UTF-8").read()
except IOError:
long_description = "See https://github.com/wolever/pprintpp"