We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b14c089 commit 45b44b7Copy full SHA for 45b44b7
setup.py
@@ -1,6 +1,7 @@
1
#!/usr/bin/env python
2
3
import sys
4
+import io
5
import re
6
import warnings
7
try:
@@ -10,7 +11,7 @@
10
11
from distutils.core import setup
12
has_setuptools = False
13
-src = open('jsonpatch.py').read()
14
+src = io.open('jsonpatch.py', encoding='utf-8').read()
15
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", src))
16
docstrings = re.findall('"""([^"]*)"""', src, re.MULTILINE | re.DOTALL)
17
0 commit comments